Explorar el Código

Added instance_position to contact_point_event

JCash hace 11 meses
padre
commit
47a488452d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      docs/en/manuals/physics-events.md

+ 2 - 1
docs/en/manuals/physics-events.md

@@ -39,7 +39,8 @@ This event reports a contact point between two collision objects. It is useful f
    - `applied_impulse`: The impulse resulting from the contact.
    - `distance`: The penetration distance between the objects.
    - `a` and `b`: Objects representing the colliding entities, each containing:
-     - `position`: World position (vector3).
+     - `position`: World position of contact point (vector3).
+     - `instance_position`: World position game object instance (vector3).
      - `id`: Instance ID (hash).
      - `group`: Collision group (hash).
      - `relative_velocity`: Velocity relative to the other object (vector3).