- #1
shaolin
- 1
- 0
I try to program a 3d-physic simulation, with bouncy collisions, friction, etc. and i have a problems with splitting forces at an inclined plane. i know that
[tex] F_n = F_g * sin(\alpha) [/tex] and
[tex] F_p = F_g * cos(\alpha) [/tex]
[tex] F_n [/tex] ... normal force
[tex] F_p [/tex] ... parallel force
[tex] F_g [/tex] ... gravity force
but i would need this in general, in 3d and working in every dircetion. i don't know the angle of my collosion, but a normal
[tex] \vec{n} [/tex].
[tex] \vec{F_n} = \bar{F_g} * \vec{n} [/tex]
but i can't think of how to do the parallel force.
can anybody help?
[tex] F_n = F_g * sin(\alpha) [/tex] and
[tex] F_p = F_g * cos(\alpha) [/tex]
[tex] F_n [/tex] ... normal force
[tex] F_p [/tex] ... parallel force
[tex] F_g [/tex] ... gravity force
but i would need this in general, in 3d and working in every dircetion. i don't know the angle of my collosion, but a normal
[tex] \vec{n} [/tex].
[tex] \vec{F_n} = \bar{F_g} * \vec{n} [/tex]
but i can't think of how to do the parallel force.
can anybody help?