Browse Source

Added instance_position to contact_point_event

JCash 11 tháng trước cách đây
mục cha
commit
47a488452d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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).