physX, finding out the Collusion strength

Posted By: Random

physX, finding out the Collusion strength - 07/06/11 13:59

Just a questine.
Is there a way to figure out how strong an physX object crashes into another object (wall, physic objects, polygons, entitys)?

This would be very helpfull.
Posted By: Superku

Re: physX, finding out the Collusion strength - 07/06/11 18:56

Does "pXent_getvelocity" help?
Posted By: Random

Re: physX, finding out the Collusion strength - 07/07/11 09:17

Im not sure.
Can I use this in a "if" function?
"if physicobject_speed == 10"
Im serching for a possibality like that.

But I noted that the physic objects, move much smoother with this function;
Click to reveal..
pXent_getvelocity(my, temp, nullvector);
vec_inverse(temp);
vec_scale(temp,0.5);
pXent_addforcecentral(my, temp);

Posted By: JHA

Re: physX, finding out the Collusion strength - 07/16/11 10:54

Hello
You can calculate collision energy by using kinetics energy formula:

Ek=0.5*m*v**2, where
Ek: kinetic energy in Joules
m: mass of moving object
v: velocity

Jarkko
© 2024 lite-C Forums