Files
evol-assets/scripts/SideScene/Child.lua
T
mo7sen eb27ae4c24 Minor Changes
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
2021-06-26 21:23:13 +02:00

15 lines
418 B
Lua
Executable File

this.on_init = function ()
this.custom_eulerangles = Vec3:new()
this.custom_angularvelocity = Vec3:new(0, 0.01, 0)
end
this.on_fixedupdate = function ()
if Input.getKeyDown(Input.KeyCode.Left) then
this.custom_eulerangles:add(Vec3:new(0,0.01,0))
end
if Input.getKeyDown(Input.KeyCode.Right) then
this.custom_eulerangles:sub(Vec3:new(0,0.01,0))
end
this.eulerAngles = this.custom_eulerangles
end