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
F_n = F_g * sin(\alpha) and
F_p = F_g * cos(\alpha)
F_n ... normal force
F_p ... parallel force
F_g ... 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
\vec{n}.
\vec{F_n} = \bar{F_g} * \vec{n}
but i can't think of how to do the parallel force.
can anybody help?
F_n = F_g * sin(\alpha) and
F_p = F_g * cos(\alpha)
F_n ... normal force
F_p ... parallel force
F_g ... 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
\vec{n}.
\vec{F_n} = \bar{F_g} * \vec{n}
but i can't think of how to do the parallel force.
can anybody help?