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
Properties | Description |
---|---|
Constraint Object1 | Constraint 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 Object2 | Constraint 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 distance | Automatically calculates the distance between two constraint objects |
automatically enabled | Automatically enable constraint effects at runtime |
Connection wire | Displays the concatenation of constraint objects |
Soft Constraint | Effect of constraint becoming "rope" when Soft Constraint is turned on |
Soft Constraint Settings
Properties | Description |
---|---|
Maximum constraint distance | Sets 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
Properties | Description |
---|---|
Enable winch | The winch feature can be enabled when Soft Constraint is turned on. |
Winch force | Set the pull of the Winch. The more mass you pull the target, the more pull you need. |
Winch speed | Set Winch Movement Speed (cm/s) |
Winch target distance | Sets 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]