A7 - Phys. Collision

Posted By: garv3

A7 - Phys. Collision - 09/28/10 19:42

Hey there,

is there a possibility to get the pointer of an entity a physics entity collides with?
I need this to read some skills of a surface a sphere rolls on or collides with in other directions.
Or do I have to do a c_trace in the direction given by phent_getvelocity?

Thanks!

derGarv
Posted By: garv3

Re: A7 - Phys. Collision - 10/03/10 23:07

No ideas at all?
Posted By: darkinferno

Re: A7 - Phys. Collision - 10/04/10 01:08

ENABLE_ENTITY
Collision with another entity during a c_move instruction or physics entity movement. Both entities must not be PASSABLE, and the collider's push value must be less than the other entities' push value. On start of the event function, the event_type variable is set to EVENT_ENTITY, 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.

the manual is your friend
Posted By: garv3

Re: A7 - Phys. Collision - 10/04/10 13:36

Thank you!
It seems I did not see this before.
© 2024 lite-C Forums