Math Question Forces

Discussions about SOFTIMAGEs© Interactive Creative Environment©
User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Math Question Forces

Post by Hirazi Blue » 27 Mar 2010, 11:53

Sorry, I know this is basic stuff, but my math skills are rusty (to the point of nonexistent :D )
Every ICE Force in SI is represented as a 3D Vector.
What happens (mathematically) to these 3D Vectors when more than one force comes into play? Are the 3D Vectors added, multiplied, cross producted, dot producted (if those last two are even words) or something else entirely?
Stay safe, sane & healthy!

craft
Posts: 107
Joined: 02 Jan 2010, 23:40
Location: Portugal

Re: Math Question Forces

Post by craft » 27 Mar 2010, 12:39

as much as i know and i don't know much either, you'll most often be adding the force vectors to the velocity vectors, which then are added to your position vectors. But it might depend a lot on what you're doing and how you're doing it.

so say you have a gravity force of g = [0, -9.8, 0], you have a v = [0,1,0] velocity and p = [0,0,0] position, at frame 1.
at frame 2 you'll have g=[0,-9.8,0], v=[0,-8.8,0], p=[0,-8.8,0]...

but say you have a drag force... you COULD calculate a drag force vector out of the velocity vector and then add that drag to the velocity... but it'd be easier to simply multiply the v vector by a scalar (.. say 0.9 ), to get the same effect.

now imagine you have a wirlwiind effect... you might as well just create a rotation out of an axis and angle(derived from the whirwind strength and mass of your object) and rotate the vector by this rotation.

grahamef
Posts: 281
Joined: 23 Jun 2009, 19:01

Re: Math Question Forces

Post by grahamef » 29 Mar 2010, 18:29

Individual forces should be added to get the total force.

The total force is divided by the mass to get the acceleration.

The acceleration is multiplied by the simulation step to get the change in velocity.

The change in velocity is added to the previous velocity to get the new velocity.

The velocity is multiplied by the simulation step to get the change in positions.

The change in position is added to the previous position to get the new position.

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: Math Question Forces

Post by Hirazi Blue » 29 Mar 2010, 18:36

Thanks... :ymhug: ;)
Stay safe, sane & healthy!