A body that forms part of a Physics articulation.
An articulation is a set of bodies arranged in a logical tree. The parent-child link in this tree reflects that the bodies have their relative motion constrained. Articulations are solved by a Featherstone solver that works in reduced coordinates - that is each body has relative coordinates to its parent but only along the unlocked degrees of freedom. This guarantees there is no unwanted stretch.
Like with regular Joints, there are two anchors for each pair of connected articulation bodies. One anchor is defined in the parent body's reference frame, whereas the other one is defined in the child's reference frame. Changing the constraints, you directly affect the allowed space for relative positions of the two anchors. For instance, ArticulationDofLock.LockedMotion will not allow any relative motion at all.
anchorPosition | Position of the anchor relative to this body. |
anchorRotation | Rotation of the anchor relative to this body. |
angularDamping | Damping factor that affects how this body resists rotations. |
angularVelocity | The angular velocity of the body defined in world space. |
automaticCenterOfMass | Whether or not to calculate the center of mass automatically. |
automaticInertiaTensor | Whether or not to calculate the inertia tensor automatically. |
centerOfMass | The center of mass of the body defined in local space. |
collisionDetectionMode | The ArticulationBody's collision detection mode. |
dofCount | The amount of degrees of freedom of a body. |
driveForce | The drive force in reduced coordinates. |
excludeLayers | The additional layers that all Colliders attached to this ArticulationBody should exclude when deciding if the Collider can come into contact with another Collider. |
immovable | Allows you to specify that this body is not movable. |
includeLayers | The additional layers that all Colliders attached to this ArticulationBody should include when deciding if a the Collider can come into contact with another Collider. |
index | The index of the body in the hierarchy of articulation bodies. |
inertiaTensor | The inertia tensor of this body. |
inertiaTensorRotation | 惯性张量的旋转。 |
isRoot | Indicates whether this body is the root body of the articulation (Read Only). |
jointAcceleration | The joint acceleration in reduced coordinates. |
jointForce | The joint force in reduced coordinates. |
jointFriction | Allows you to specify the amount of friction that is applied as a result of the parent body moving relative to this body. |
jointPosition | The joint position in reduced coordinates. |
jointType | The type of joint connecting this body to its parent body. |
jointVelocity | The joint velocity in reduced coordinates. |
linearDamping | Damping factor that affects how this body resists linear motion. |
linearLockX | The type of lock along X axis of movement. |
linearLockY | The type of lock along Y axis of movement. |
linearLockZ | The type of lock along Z axis of movement. |
mass | The mass of this articulation body. |
matchAnchors | Whether the parent anchor should be computed automatically or not. |
maxAngularVelocity | The maximum angular velocity of the articulation body measured in radians per second. |
maxDepenetrationVelocity | The maximum velocity of an articulation body when moving out of penetrating state. |
maxJointVelocity | The maximum joint velocity of the articulation body joint in reduced coordinates. |
maxLinearVelocity | The maximum linear velocity of the articulation body measured in meters per second. |
parentAnchorPosition | Position of the anchor relative to this body's parent. |
parentAnchorRotation | Rotation of the anchor relative to this body's parent. |
sleepThreshold | 经过质量标准化的能量阈值 - 当低于该阈值时,对象开始进入睡眠状态。 |
solverIterations | The solverIterations determines how accurately articulation body joints and collision contacts are resolved. |
solverVelocityIterations | The solverVelocityIterations affects how accurately articulation body joints and collision contacts are resolved during bounce. |
swingYLock | The magnitude of the conical swing angle relative to Y axis. |
swingZLock | The magnitude of the conical swing angle relative to Z axis. |
twistLock | The type of lock for twist movement. |
useGravity | Controls whether gravity affects this articulation body. |
velocity | Linear velocity of the body defined in world space. |
worldCenterOfMass | The center of mass of the body defined in world space (Read Only). |
xDrive | The properties of drive along or around X. |
yDrive | The properties of drive along or around Y. |
zDrive | The properties of drive along or around Z. |
AddForce | Applies a force to the ArticulationBody. |
AddForceAtPosition | Applies a force at a specific position, resulting in applying a torque and force on the object. |
AddRelativeForce | Applies a force to the Articulation Body, relative to its local coordinate system. |
AddRelativeTorque | Applies a torque to the articulation body, relative to its local coordinate system. |
AddTorque | Add torque to the articulation body. |
GetAccumulatedForce | Returns the force that the ArticulationBody has accumulated before the simulation step. |
GetAccumulatedTorque | Returns the torque that the ArticulationBody has accumulated before the simulation step. |
GetClosestPoint | Return the point on the articulation body that is closest to a given one. |
GetDenseJacobian | Calculates and writes dense Jacobian matrix of the articulation body hierarchy to the supplied struct. |
GetDofStartIndices | Calculates and reads back reduced coordinate data start indexes in reduced coordinate data buffer for every articulation body in the hierarchy. |
GetDriveForces | Reads the entire hierarchy of Articulation Bodies and fills the supplied list of floats with Articulation Drive forces. |
GetDriveTargets | Reads back articulation body joint drive targets of the entire hierarchy to the supplied list of floats. |
GetDriveTargetVelocities | Reads back articulation body joint drive target velocities of the entire hierarchy to the supplied list of floats . |
GetJointAccelerations | Reads back articulation body joint accelerations of the entire hierarchy to the supplied list of floats . |
GetJointCoriolisCentrifugalForces | Fills the supplied list of floats with the forces required to counteract the Coriolis and centrifugal forces for each Articulation Body in the articulation. |
GetJointExternalForces | Fills the supplied list of floats with forces required to counteract any existing external forces (applied using ArticulationBody.AddForce or ArticulationBody.AddTorque) for each Articulation Body in the articulation. |
GetJointForces | Reads back articulation body joint forces of the entire hierarchy to the supplied list of floats . |
GetJointForcesForAcceleration | Returns the forces required for the body to reach the provided acceleration in reduced space. |
GetJointGravityForces | Fills the supplied list of floats with forces required to counteract gravity for each Articulation Body in the articulation. |
GetJointPositions | Reads back articulation body joint positions of the entire hierarchy to the supplied list of floats . |
GetJointVelocities | Reads back articulation body joint velocities of the entire hierarchy to the supplied list of floats . |
GetPointVelocity | Gets the velocity of the articulation body at the specified worldPoint in global space. |
GetRelativePointVelocity | The velocity relative to the articulation body at the point relativePoint. |
IsSleeping | Indicates whether the articulation body is sleeping. |
ResetCenterOfMass | Resets the center of mass of the articulation body. |
ResetInertiaTensor | Resets the inertia tensor value and rotation. |
SetDriveDamping | Sets the damping value of the specified drive. |
SetDriveForceLimit | Sets the force limit of the specified drive. |
SetDriveLimits | Sets the lower and upper limits of the drive. |
SetDriveStiffness | Sets the stiffness value of the specified drive. |
SetDriveTarget | Sets the target value of the specified drive. |
SetDriveTargets | Assigns articulation body joint drive targets for the entire hierarchy of bodies. |
SetDriveTargetVelocities | Assigns articulation body joint drive target velocities for the entire hierarchy of bodies. |
SetDriveTargetVelocity | Sets the target velocity value of the specified drive. |
SetJointForces | Assigns articulation body joint forces for the entire hierarchy of bodies. |
SetJointPositions | Assigns articulation body joint positions for the entire hierarchy of bodies. |
SetJointVelocities | Assigns articulation body joint velocities for the entire hierarchy of bodies. |
Sleep | Forces an articulation body to sleep. |
SnapAnchorToClosestContact | Snap the anchor to the closest contact between the connected bodies. |
TeleportRoot | Teleport the root body of the articulation to a new pose. |
WakeUp | Forces an articulation body to wake up. |
enabled | 启用的 Behaviour 可更新,禁用的 Behaviour 不可更新。 |
isActiveAndEnabled | Reports whether a GameObject and its associated Behaviour is active and enabled. |
gameObject | 此组件附加到的游戏对象。始终将组件附加到游戏对象。 |
tag | 此游戏对象的标签。 |
transform | 附加到此 GameObject 的 Transform。 |
hideFlags | 该对象应该隐藏、随场景一起保存还是由用户修改? |
name | 对象的名称。 |
BroadcastMessage | 调用此游戏对象或其任何子项中的每个 MonoBehaviour 上名为 methodName 的方法。 |
CompareTag | Checks the GameObject's tag against the defined tag. |
GetComponent | Gets a reference to a component of type T on the same GameObject as the component specified. |
GetComponentInChildren | Gets a reference to a component of type T on the same GameObject as the component specified, or any child of the GameObject. |
GetComponentInParent | Gets a reference to a component of type T on the same GameObject as the component specified, or any parent of the GameObject. |
GetComponents | Gets references to all components of type T on the same GameObject as the component specified. |
GetComponentsInChildren | Gets references to all components of type T on the same GameObject as the component specified, and any child of the GameObject. |
GetComponentsInParent | Gets references to all components of type T on the same GameObject as the component specified, and any parent of the GameObject. |
SendMessage | 调用此游戏对象中的每个 MonoBehaviour 上名为 methodName 的方法。 |
SendMessageUpwards | 调用此游戏对象中的每个 MonoBehaviour 上或此行为的每个父级上名为 methodName 的方法。 |
TryGetComponent | 获取指定类型的组件(如果存在)。 |
GetInstanceID | Gets the instance ID of the object. |
ToString | 返回对象的名称。 |
Destroy | 移除 GameObject、组件或资源。 |
DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 |
DontDestroyOnLoad | 在加载新的 Scene 时,请勿销毁 Object。 |
FindAnyObjectByType | Retrieves any active loaded object of Type type. |
FindFirstObjectByType | Retrieves the first active loaded object of Type type. |
FindObjectOfType | 返回第一个类型为 type 的已加载的激活对象。 |
FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | 克隆 original 对象并返回克隆对象。 |
bool | 该对象是否存在? |
operator != | 比较两个对象是否引用不同的对象。 |
operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |