Recommiting glbs for LFS
This commit is contained in:
@@ -271,6 +271,18 @@ func exit_vehicle(exit_point: Node3D, vehicle_camera: Camera3D) -> void:
|
||||
vehicle_exited.emit(null)
|
||||
|
||||
|
||||
func teleport_to_spawn(spawn_transform: Transform3D) -> void:
|
||||
global_transform = spawn_transform
|
||||
linear_velocity = Vector3.ZERO
|
||||
angular_velocity = Vector3.ZERO
|
||||
sleeping = false
|
||||
_camera_yaw = global_transform.basis.get_euler().y
|
||||
if cam:
|
||||
var target_basis := Basis(Vector3.UP, _camera_yaw)
|
||||
cam.global_position = global_position + (target_basis * _camera_offset_local)
|
||||
cam.global_rotation = Vector3(_camera_pitch, _camera_yaw, 0.0)
|
||||
|
||||
|
||||
func is_in_vehicle() -> bool:
|
||||
return _in_vehicle
|
||||
|
||||
|
||||
Reference in New Issue
Block a user