Quantum 3
3.0.9
A component that tracks the collisions (trigger and non-trigger) this entity is involved in. The tracked metadata is used to raise physics callbacks according to the callback Flags set. More...
Public Member Functions | |
| void | AddCollision (FrameBase f, AssetGuid mapGuid, int staticColliderId, bool isTrigger) |
| Adds a collision with a static collider to the collisions tracked by this component using the staticColliderId as reference. More... | |
| void | AddCollision (FrameBase f, EntityRef entity) |
| Adds a collision with an entity to the collisions tracked by this component. More... | |
| bool | IsCollidingWith (FrameBase f, AssetGuid mapGuid, int staticColliderId, out int index) |
| Checks if a collision between the entity owner of this component and a given static collider is already being tracked. More... | |
| bool | IsCollidingWith (FrameBase f, EntityRef entity, out int index) |
| Checks if a collision between the entity owner of this component and another entity is already being tracked. More... | |
Static Public Member Functions | |
| static void | Serialize (void *ptr, FrameSerializer serializer) |
| Serializes a PhysicsCallbacks2D into a FrameSerializer. More... | |
Public Attributes | |
| CallbackFlags | Flags |
| Represents which collision callbacks will be called for the entity. See CallbackFlags for more information. More... | |
Static Public Attributes | |
| const int | SIZE = sizeof(CallbackFlags) + Ptr.SIZE + sizeof(int) + sizeof(int) |
| The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed. More... | |
Properties | |
| readonly Ptr | ListBufferPtr [get] |
| The pointer to the list of metadata of collisions being tracked. More... | |
| int | ListCount [get] |
| The number of collisions currently being tracked. More... | |
A component that tracks the collisions (trigger and non-trigger) this entity is involved in. The tracked metadata is used to raise physics callbacks according to the callback Flags set.
|
inline |
Checks if a collision between the entity owner of this component and another entity is already being tracked.
| f | The frame. |
| entity | The other entity reference. |
| index | The index of the PhysicsCommon.CollisionCallbackInfo in the list. -1 if the collision is not yet being tracked. |
|
inline |
Checks if a collision between the entity owner of this component and a given static collider is already being tracked.
| f | The frame. |
| mapGuid | The map guid of a scene. |
| staticColliderId | The static collier id to find. |
| index | The index of the PhysicsCommon.CollisionCallbackInfo of the list. -1 if the collision is not yet being tracked. |
Adds a collision with an entity to the collisions tracked by this component.
| f | The frame. |
| entity | The Entity to add to the tracking list. |
|
inline |
Adds a collision with a static collider to the collisions tracked by this component using the staticColliderId as reference.
| f | The frame. |
| mapGuid | The map guid of a scene. |
| staticColliderId | The static collier id. |
| isTrigger | If the collider is trigger. |
|
inlinestatic |
Serializes a PhysicsCallbacks2D into a FrameSerializer.
| ptr | The pointer to the PhysicsCallbacks2D. |
| serializer | The FrameSerializer instance into which the struct will be serialized. |
|
static |
The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed.
| CallbackFlags Quantum.PhysicsCallbacks2D.Flags |
Represents which collision callbacks will be called for the entity. See CallbackFlags for more information.
|
get |
The number of collisions currently being tracked.
|
get |
The pointer to the list of metadata of collisions being tracked.