onCollisionExit
ScriptBase::onCollisionExit
Is executed the frame an Entity’s Collidable Component stops colliding with another’s Entity’s Collidable Component.
Declaration
virtual void onCollisionExit(CollisionInfo collisionInfo);
Parameters
Name |
Type |
Description |
---|---|---|
collisionInfo |
Information about the collision. |
Returns
None.
Notes
This function is called the frame Entity and collisionInfo.otherEntity
stop colliding. As both Entities are not colliding anymore, collisionInfo.normal
, collisionInfo.depth
and collisionInfo.relativePoints
will be the same as the previous frame’s ScriptBase’s onCollisionEnter call or ScriptBase’s onCollisionStill call, depending on which one was called last.