EVENT_ENTITY

ENABLE_ENTITY

Collision with another entity during a c_move instruction or physics entity movement. The entity must not be PASSABLE and it's push value must be 0 or less. On start of the event function, the event_type variable is set to EVENT_BLOCK, the you pointer is set to the other entity, the vector normal is set to a direction perpendicular to that surface, and the vector bounce is set to the direction into which the entity would bounce off.

Remarks:

Modifies

you Pointer to the other entity
normal Vector of the hit normal
bounce

Vector in bounce direction

Example:

See event

See also:

event, c_move, push, passable, you, normal, bounce, EVENT_IMPACT, EVENT_PUSH