we could make a function to do that.
but we do have collision events.
- Code: Select all
function onCollision_Start (int hitID)
function onCollision_Stay (int hitID)
function onCollision_End (int hitID)
obviously the functions will need enabled on the properties, but they do work.
having a speed on impact though could be interesting for simplicity
We have been upgrading the physics collision events to return all information: also just noticed that the API is out of date and does not display these functions:
- Code: Select all
physics.getContactNumShapes()
position = newType.vec3(physics.getContactPoint( shapeID ));
normal = newType.vec3(physics.getContactNormal());
force = physics.getContactForce( shapeID )); -- i think this one is still being worked on.
id_contact = physics.getContactEntID();
thanks again!