|
WoopWoop-Docs
|
Represents a collider component attached to an entity. More...
Public Member Functions | |
| virtual bool | IsCollidingWith (Collider other) |
| Checks if the collider is colliding with another collider. | |
| bool | IsCollidingWith (Entity other) |
| Checks if the collider is colliding with an entity. | |
| Entity[] | GetCollidingEntitiesWithTag (string tag) |
| Gets an array of entities colliding with entities having a specific tag. | |
| Entity[] | GetAllCollidingEntities () |
| Gets an array of all entities colliding with the collider's entity. | |
Public Member Functions inherited from WoopWoop.Component | |
| void | Attach (Entity entity) |
| Attaches the component to an entity. | |
| virtual void | Awake () |
| Awake is called when the component is initialized, regardless of whether or not the script is enabled. | |
| virtual void | Start () |
| Called when the component is started if it's enabled. | |
| virtual void | Update (float deltaTime) |
| Called every frame to update the component's state. | |
| virtual void | OnEndOfFrame () |
| Called on the end of every frame. | |
| virtual void | Stop () |
| Called when the component is removed. | |
| virtual void | OnDrawGizmo () |
| Tells the renderer how to draw the object's editor gizmos. | |
Private Member Functions | |
| Entity[] | GetCollidingEntitiesFromList (List< Entity > entitiesList) |
| Retrieves entities colliding with a list of entities. | |
Additional Inherited Members | |
Properties inherited from WoopWoop.Component | |
| Entity | entity [get, private set] |
| The entity to which this component is attached. | |
| Transform | transform [get] |
| The transform of the entity to which this component is attached. | |
| bool | Enabled = true [get, set] |
| Determines whether the component is enabled. | |
Represents a collider component attached to an entity.
| Entity[] WoopWoop.Collider.GetAllCollidingEntities | ( | ) |
Gets an array of all entities colliding with the collider's entity.
Retrieves entities colliding with a list of entities.
| entitiesList | The list of entities to check against. |
| Entity[] WoopWoop.Collider.GetCollidingEntitiesWithTag | ( | string | tag | ) |
Gets an array of entities colliding with entities having a specific tag.
| tag | The tag to filter entities. |
|
virtual |
Checks if the collider is colliding with another collider.
| other | The other collider to check against. |
Reimplemented in WoopWoop.BoxCollider.
| bool WoopWoop.Collider.IsCollidingWith | ( | Entity | other | ) |
Checks if the collider is colliding with an entity.
| other | The other entity to check against. |