onCollisionEnter

ScriptBase::onCollisionEnter

Is executed the frame an Entity’s Collidable Component collides with another’s Entity’s Collidable Component.

Declaration

virtual void onCollisionEnter(CollisionInfo collisionInfo);

Parameters

Name

Type

Description

collisionInfo

CollisionInfo

Information about the collision.

Returns

None.

Notes

This function is called the first frame the current Entity and collisionInfo.otherEntity collide. It will be called again when both Entities will stop colliding and collide again.