2
0
Эх сурвалжийг харах

Added instance_position to contact_point_event

JCash 11 сар өмнө
parent
commit
47a488452d

+ 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).