Skip to content
Rigid Constraint

Rigid Constraint

TIP

It takes about 10 minutes to reading this article.

This article provides an overview of Rigid Constraint definitions and instructions in the editor.

What is Rigid Constraint

Rigid Constraint can place constraints on two objects to perform associated physical simulated motions.

Rigid Constraint Object Properties

Connection property settings

PropertiesDescription
Constraint Object1Constraint object 1, the current constraint type is objects with physical simulation characteristics such as Models, Characters, NPCs, vehicles, etc. Other object constraints are invalid.
Constraint Object2Constraint object 2, the current constraint type is objects with physical simulation characteristics such as model, character, NPC, vehicle, etc. Other object constraints are invalid.
Current distanceAutomatically calculates the distance between two constraint objects
automatically enabledAutomatically enable constraint effects at runtime
Connection wireDisplays the concatenation of constraint objects
Soft ConstraintEffect of constraint becoming "rope" when Soft Constraint is turned on

Soft Constraint Settings

PropertiesDescription
Maximum constraint distanceSets the maximum distance between two constraint objects that can be inseparable. When the current distance of the constraint object exceeds the set maximum constraint distance, the Rigid Constraint is automatically contracted to bring the two constraint objects closer together.

How to use Rigid Constraint Objects

Search the local asset library for [Rigid Constraint], find the feature object, drag it into the scene and create it.

Complete the constraint by binding the object you want to be constraint through the property panel.

Normal connection effect

Soft Constraint Effect

Winch Settings

PropertiesDescription
Enable winchThe winch feature can be enabled when Soft Constraint is turned on.
Winch forceSet the pull of the Winch. The more mass you pull the target, the more pull you need.
Winch speedSet Winch Movement Speed (cm/s)
Winch target distanceSets the target distance of the Winch motion and stops the Winch motion when the distance between the two objects under constraint reaches the Winch target.

Usage of Winch

1. Place a square in the air as a fixed constraint point. Place a sphere underneath and turn on the physical simulation as a constraint object that can be pulled. 2. create a Rigid Constraint Gameplay object that constraint two constraint objects to the square and sphere models, respectively. 3. Rigid Constraint Gameplay Object On [Auto Enable], [Soft Constraint], [Set Maximum Constraint Distance]. 4. Rigid Constraint Gameplay Object on [Enable Winch], set [Winch Force] and [Winch Speed], and set a [Winch Target Distance]