Преглед на файлове

:beetle: Use self position to emit crash effect

Otherwise that the other collided body that emits the effect,
looks pretty strange.
DricomDragon преди 1 година
родител
ревизия
ba348e90f2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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