fix(studio): Add solid floor collision, live 3D gizmo dragging, inspector property sync, and nudge shortcuts
checkpoint / checkpoint (push) Successful in 6m23s
checkpoint / checkpoint (push) Successful in 6m23s
This commit is contained in:
@@ -132,9 +132,18 @@ func _spawn_test_avatar() -> void:
|
||||
_spawned_avatar = p
|
||||
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
if state == SimulationState.PLAYING and _spawned_avatar != null and is_instance_valid(_spawned_avatar):
|
||||
if _spawned_avatar is Node3D and (_spawned_avatar as Node3D).global_position.y < -30.0:
|
||||
(_spawned_avatar as Node3D).global_position = Vector3(0, 1.5, 0)
|
||||
if _spawned_avatar is CharacterBody3D:
|
||||
(_spawned_avatar as CharacterBody3D).velocity = Vector3.ZERO
|
||||
|
||||
|
||||
func is_playing() -> bool:
|
||||
return state == SimulationState.PLAYING
|
||||
|
||||
|
||||
func is_editing() -> bool:
|
||||
return state == SimulationState.EDIT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user