소스 검색

: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