fixed more model stuff

This commit is contained in:
2024-01-26 22:52:20 +01:00
parent e5e4d2fd57
commit fbebc382b9
19 changed files with 76570 additions and 1921 deletions

View File

@@ -51,9 +51,9 @@ func _physics_process(_delta):
collider = null
func lock_vertical_rotation(body: RigidBody3D, locked: bool):
if locked:
var rot = body.rotation
body.rotation = Vector3(0,rot.y,0)
#if locked:
#var rot = body.rotation
#body.rotation = Vector3(0,rot.y,0)
body.axis_lock_linear_x = locked
body.axis_lock_linear_z = locked
body.axis_lock_angular_x = locked