Measuring force of collision

Get help using Construct 2

Post » Fri Jun 07, 2013 4:23 pm

Hi!

I was wondering how can you measure force of collision. I need to measure impact, not precisely but roughly. Then i need to play sound but only once a second not for every sprite colliding at the same time.
B
16
S
5
G
4
Posts: 74
Reputation: 3,301

Post » Fri Jun 07, 2013 5:24 pm

You can't do it really (that i know of) because the physics stuff is embedded into Box2D. That's not to say you can't do it yourself. It's mostly just checking a couple of variables rights?

Object1 On Collides with Object2
Object1 Speed
Object2 Speed
Object1 Density
Object2 Density

if your char has a max speed of 500, you can just say, if between 0-100, and collides with something, make sound 1, if 101-200, make sound 2 etc.
B
30
S
10
G
7
Posts: 416
Reputation: 7,239

Post » Sat Jun 08, 2013 2:01 pm

@firebelly

It doesn't work cause i need to measure one part of ragdoll. I tried that and the ragdoll just fell to laggy pile of body parts
B
16
S
5
G
4
Posts: 74
Reputation: 3,301


Return to How do I....?

Who is online

Users browsing this forum: Anonnymitet, dzert14, FabianB, hossein, reddragon09, Yura G and 10 guests