Explorar el Código

:beetle: Use self position to emit crash effect

Otherwise that the other collided body that emits the effect,
looks pretty strange.
DricomDragon hace 1 año
padre
commit
ba348e90f2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      godot/component/entity/vehicles/seated_vehicle.gd

+ 1 - 1
godot/component/entity/vehicles/seated_vehicle.gd

@@ -35,7 +35,7 @@ func _crash_on(body: Node3D) -> void:
 
 
 func _get_contact_from(body: Node3D) -> Vector3:
-	return body.get_position()
+	return get_position()
 
 
 ## Need to be overridden to return an available seat