# Retrieve the force

New releases and general discussions.

### » Fri Nov 23, 2007 4:15 pm

You should really be able to retrieve the force of an object with physics. For example to set a speed limit, to determine if an object should break etc.
B
1
G
5
Posts: 20
Reputation: 1,265

### » Fri Nov 23, 2007 4:21 pm

You can retrieve the velocity already... I'll try and add a way to get the current force though, it's just mass * acceleration.
Scirra Founder
B
415
S
247
G
92
Posts: 25,279
Reputation: 200,817

### » Sat Nov 24, 2007 7:13 pm

hi, just logged to say hello and congrats for this fantastic application, I find it pretty useful for fast app and game ideas.

on topic: You can retrieve force as Ashley said from Force=mass*acceleration but may be Im thinking you will need the algebraic equations of motion. Im refreshing my physics atm but from what I can remember may be you could use a=(vf-v0)/(tf-t0) for a given moment and given velocity. there is other equation for acceleration but its related with total displacement if im not mistaken.

cheers.
B
1
S
1
G
5
Posts: 2
Reputation: 1,379

### » Mon Nov 26, 2007 1:06 am

You can't retrieve the acceleration as far as I can tell.
B
2
S
1
G
5
Posts: 31
Reputation: 1,462

### » Mon Nov 26, 2007 8:56 am

It would be great to be able to compare physics movement properties, eg: if angular velocity > 10 then ...

Would add a little more control to some of the functions
I dunno...
B
3
S
2
G
5
Posts: 351
Reputation: 2,377

### » Tue Nov 27, 2007 7:49 am

[quote="Arcticus":13w6ap27]It would be great to be able to compare physics movement properties, eg: if angular velocity > 10 then ...

Would add a little more control to some of the functions
I dunno...[/quote:13w6ap27]

It'd also be nice to be able to retrieve a physics collision, as opposed to a sprite collision. I don't know if that'd be possible, though.

For instance, I can't reliably add sound effects to my billiards demo just by using sprite collisions. They don't trigger properly because the physics collision takes place first. If we could check for physics collisions and retrieve force, not only could I add sfx, but varying degrees of loudness depending on how hard they hit, which would be pretty sweet.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

### » Tue Nov 27, 2007 3:37 pm

It'd also be nice to be able to retrieve a physics collision, as opposed to a sprite collision. I don't know if that'd be possible, though.

For instance, I can't reliably add sound effects to my billiards demo just by using sprite collisions. They don't trigger properly because the physics collision takes place first. If we could check for physics collisions and retrieve force, not only could I add sfx, but varying degrees of loudness depending on how hard they hit, which would be pretty sweet.[/quote:2hvybzv4]

AND, we could make objects brake if the impact is to powerful! SWEET!! Put THAT up your To-do list and code it!
B
10
S
2
G
5
Posts: 746
Reputation: 3,342