O'Reilly logo

jMonkeyEngine 3.0 Cookbook by Rickard Edén

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Self-balancing using RotationalLimitMotors

Many games today use a blend of animations and physics to create realistic movement. For animated characters, this revolves around balance. It could take the shape of a runner who leans inwards through a curve to counter the centrifugal force. Creating a system like this is not easy and requires a lot of tweaking. In this recipe, we'll look into some of the fundamentals of this, and we'll create a new Control class that will try to balance itself using the rotational motors of SixDofJoint.

Note

Six Degrees of Freedom (SixDof) relates to the six ways the joint can rotate: +x, -x, +y, -y, +z, and -z. One way it differs from a point2point joint is that in addition, it also has motors for each axis, which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required