Преглед изворни кода

:beetle: Use self position to emit crash effect

Otherwise that the other collided body that emits the effect,
looks pretty strange.
DricomDragon пре 1 година
родитељ
комит
81b8677cc7
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