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
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

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: 99Instances2Go, Yahoo [Bot] and 26 guests