blob: b89e3b9e56722f5da68a073858a99698044ae7ea (
plain) (
blame)
1
2
3
4
5
6
7
8
|
extends RigidBody
export var ang_acceleration = 240.0
func _integrate_forces(_state):
var stick = Input.get_axis("ship_right","ship_left")
if stick != 0.0:
self.add_torque(Vector3.UP*stick*ang_acceleration)
|