1.5 - PhysicsConstraints

Choose your OS:

physics_1_5_001.png

A Physics Constraint is basically a type of joint. It allows you to connect two Actors together (presumably one physically simulating), and also apply limits or forces. Unreal Engine 4 has a very flexible and data-driven constraint system that allows designers to make many different types of joints simply by changing some options. The engine has a few default joint types (ball-and-socket, hinge, prismatic) but they only differ in their settings. You should feel free to start with any joint type and experiment with making your own configurations.

In the content example, working from left to right:

  1. Swings freely on its first axis, has a 45 degree limit on the 2nd, and is locked on the "twist" axis.

  2. This cube is has a free motion on Angular Swing 2Motion, and locked on the others.

  3. Free on Twist, locked on the others.

  4. The last cube is free on all axes.