Get velocity on collision time

Get help using Construct 2

Post » Fri May 25, 2012 9:00 am

Hi. I have a physics object (A) set in motion by a Physics Impulse at an angle. I want to get the velocity of the object when it collides with another Physics object (B) and use the value to decide whether B should be destroyed or just bounce off A. How do I get the velocity?
B
14
S
4
G
3
Posts: 32
Reputation: 2,959

Post » Fri May 25, 2012 12:13 pm

distance(0,0,object.physics.vexctorX,object.physics.vectorY) will give you the velocity.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue May 29, 2012 9:38 am

Thanks a bunch!
B
14
S
4
G
3
Posts: 32
Reputation: 2,959


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests

cron