Page 1 of 1

PhysicalResponse2

PostPosted: Mon Apr 25, 2005 5:56 am
by jazz_e_bob
double PhysicalResponse2(int moveType, int massType, double massEventActor, double massCollideActor, double eventVelocityMultiplier, double collideVelocityMultiplier)

returns collision speed.

Why?

You could use it to control how loud the collision sound is played. How much damage is done. etc

PostPosted: Mon Apr 25, 2005 6:08 am
by ingsan
YES, Brillant :P

PostPosted: Tue Apr 26, 2005 7:08 pm
by makslane
Some considerations:

1) Create the function getCollisionSpeed() to be used in any collision event, even if not use the PhysicalResponse action.

2) Create the functions getCollisionSpeedX() and getCollisionSpeedY() to get the velocities in x and y directions

PostPosted: Tue Apr 26, 2005 9:22 pm
by jazz_e_bob
Of course! :)

I will experiment...