物理约束参考指南

This page contains a reference listing of properties in the Physics Constraints.

Properties

Below are the properties for Physics Constraints separated by major category.

Constraint

propConstraint.png

Property images/spacer.png Description
约束 Actor 1

Pointer to first Actor to constrain.

组件名称 1

Name of first component property to constrain. If Actor1 is NULL, will look within Owner. If this is NULL, will use RootComponent of Actor1

约束Actor 2

Pointer to second Actor to constrain.

组件名称2

Name of second component property to constrain. If Actor2 is NULL, will look within Owner. If this is NULL, will use RootComponent of Actor2

关节名称

Name of bone that this joint is associated with.

约束骨骼1

Name of first bone (body) that this constraint is connecting. This will be the 'child' bone in a PhysicsAsset.

约束骨骼2

Name of second bone (body) that this constraint is connecting. This will be the 'parent' bone in a PhysicsAset.

禁用碰撞

Projection

propProjection.png

Property images/spacer.png Description
Enable Projection

If distance error between bodies exceeds 0.1 units, or rotation error exceeds 10 degrees, body will be projected to fix this. For example a chain spinning too fast will have its elements appear detached due to velocity, this will project all bodies so they still appear attached to each other.

Projection Linear Tolerance

Linear tolerance value in world units. If the distance error exceeds this tolarance limit, the body will be projected.

Projection Angular Tolerance

Angular tolerance value in world units. If the distance error exceeds this tolarance limit, the body will be projected.

Joint Presets

propJointPresets.png

Property images/spacer.png Description
Hinge(铰链式) 锁定 线性运动, 锁定 摇动,并设置 角扭动自由 。经典的门铰链或膝盖关节。
Prismatic(棱柱式) 锁定 摇动, 锁定 角扭动, 锁定 线性Y运动线性Z 运动, 并设置 Linear ZMotion(线性Z运动)自由 。比如水利活塞。
Ball and Socket(球窝式) 锁定 所有 线性运动 ,设置 摇动扭动自由 。完全自由地旋转,和沙袋或破碎球。

Linear Limits

propLinearLimits.png

Property images/spacer.png Description
Linear XMotion

Indicates whether linear motion along the x axis is allowed, blocked or limited. If limited, the LinearLimit property will be used to determine if a motion is allowed. See ELinearConstraintMotion.

Linear YMotion

Indicates whether linear motion along the y axis is allowed, blocked or limited. If limited, the LinearLimit property will be used to determine if a motion is allowed. See ELinearConstraintMotion.

Linear ZMotion

Indicates whether linear motion along the z axis is allowed, blocked or limited. If limited, the LinearLimit property will be used to determine if a motion is allowed. See ELinearConstraintMotion.

Linear Limit Size

The limiting extent in world units of the linear motion for limited motion axes.

Advanced

propLinearLimitsADV.png

Property images/spacer.png Description
Linear Limit Soft

Whether we want to use soft limits instead of hard limits. With enabled soft limit, a constraint is used instead of hard-capping the motion.

Linear Limit Stiffness

Stiffness of the linear soft limit constraint. Only used, when bLinearLimitSoft is true.

Linear Limit Damping

Damping of the linear soft limit constraint. Only used, when bLinearLimitSoft is true.

Linear Breakable

Defines whether the joint is breakable or not.

Linear Break Threshold

Force needed to break the joint.

Angular Limits

propsAngularLimits.png

Property images/spacer.png Description
Angular Swing 1Motion

Indicates whether rotation about the Z axis is allowed, blocked, or limited. If limited, the AngularLimit property will be used to determine the range of motion. See EAngularConstraintMotion.

Angular Twist Motion

Indicates whether rotation about the the X axis is allowed, blocked, or limited. If limited, the AngularLimit property will be used to determine the range of motion. See EAngularConstraintMotion.

Angular Swing 2Motion

Indicates whether rotation about the Y axis is allowed, blocked, or limited. If limited, the AngularLimit property will be used to determine the range of motion. See EAngularConstraintMotion.

Swing 1Limit Angle

Used if swing motion along the y axis is limited. The limit angle is specified in degrees and should be between 0 and 180.

Twist Limit Angle

Used if twist motion along the x axis is limited. The limit angle is specified in degrees and should be between 0 and 180.

Swing 2Limit Angle

Used if swing motion along the z axis is limited. The limit angle is specified in degrees and should be between 0 and 180.

Angular Rotation Offset

Specifies the angular offset between the two frames of reference. By default limit goes from (-Angle, +Angle) This allows you to bias the limit for swing1 swing2 and twist.

Advanced

propsAngularLimitsADV.png

Property images/spacer.png Description
Swing Limit Soft

Whether we want to use soft limits for swing motions instead of hard limits. With enabled soft limit, a constraint is used instead of hard-capping the motion.

Swing Limit Stiffness

Stiffness of the swing limit constraint if soft limit is used for swing motions.

Swing Limit Damping

Damping of the swing limit constraint if soft limit is used for swing motions.

Twist Limit Soft

Whether we want to use soft limits for twist motions instead of hard limits. With enabled soft limit, a constraint is used instead of hard-capping the motion.

Twist Limit Stiffness

Stiffness of the twist limit constraint if soft limit is used for twist motions.

Twist Limit Damping

Damping of the twist limit constraint if soft limit is used for twist motions.

Angular Breakable

Whether it is possible to break the joint with angular force.

Angular Break Threshold

Angular force needed to break the joint.

Linear Motor

propLinearMotor.png

Property images/spacer.png Description
Linear Position Drive

Enables/Disables linear position drive.

Linear Position Target

Target position the linear drive. Only the components that are enabled are used.

Linear Position Strength

Spring to apply to the for linear drive.

Linear Velocity Drive

Enables/Disables linear velocity drive.

Linear Velocity Target

Target velocity the linear drive.

Linear Velocity Strength

Damping to apply to the for linear drive.

Max Linear Force

Limit to the force the linear drive can apply.

Angular Motor

propsAngularMotor.png

Property images/spacer.png Description
Angular Orientation Drive

Enables the angular drive towards a target orientation.

Angular Orientation Target

Target orientation for the angular drive.

Angular Orientation Strength

Spring value to apply to the for angular drive.

Angular Velocity Drive

Enables the angular drive towards a target velocity.

Angular Velocity Target

Target velocity for the angular drive.

Angular Velocity Strength

Damping value to apply to the for angular drive.

Max Angular Force

Limit to the force the angular drive can apply.

Angular Drive Mode

The way rotation paths are estimated.