# Ad vs Set in physics movement

For questions about using Classic.

### » Tue Mar 25, 2008 3:02 pm

What's the difference between ad and set force/torque? I thought set torque to 0 would stop the sprite from rotating emmediately, and set force 0 would stop it from moving. Ad and set seems to do the same thing right now.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

### » Tue Mar 25, 2008 5:59 pm

If you did

+ Start of layout
: Add force 5
: Add force 5

the total force added is 10.

If you did

+ Start of layout
: Set force 5
: Set force 5

the total force applied to the object is still 5. Simple, 'add' is for cumulative forces, and 'set' is for overall.
Scirra Founder
B
355
S
208
G
71
Posts: 22,829
Reputation: 176,664

### » Tue Mar 25, 2008 7:03 pm

Also, to stop something rotating use Set Angular Velocity.
B
3
S
2
G
4
Posts: 130
Reputation: 1,735

### » Tue Mar 25, 2008 8:05 pm

But set force 0 don't stop the object from moving... Why?

Edit: [quote="Drew Carey":3a3te48q]Also, to stop something rotating use Set Angular Velocity.[/quote:3a3te48q]

Thank you!
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

### » Tue Mar 25, 2008 10:13 pm

[quote="Attan":1cy2icmo]But set force 0 don't stop the object from moving... Why?
[/quote:1cy2icmo]

Now that you mention it, that is strange.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

### » Tue Mar 25, 2008 10:33 pm

Im afraid that Add and Set are the same in Construct.

Edit: Yeah i was trying to make a little Solar System and it failed becouse the Gravity force was always adding not setting... even when i give "Set" function.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Return to Help & Support using Construct Classic

### Who is online

Users browsing this forum: No registered users and 4 guests