pub struct ArticulationBody {Show 32 fields
pub m_AnchorPosition: Vector3f,
pub m_AnchorRotation: Quaternionf,
pub m_AngularDamping: f32,
pub m_ArticulationJointType: i32,
pub m_Enabled: u8,
pub m_GameObject: PPtr,
pub m_Immovable: bool,
pub m_JointFriction: f32,
pub m_LinearDamping: f32,
pub m_LinearX: i32,
pub m_LinearY: i32,
pub m_LinearZ: i32,
pub m_Mass: f32,
pub m_ParentAnchorPosition: Vector3f,
pub m_ParentAnchorRotation: Quaternionf,
pub m_SwingY: i32,
pub m_SwingZ: i32,
pub m_Twist: i32,
pub m_XDrive: ArticulationDrive,
pub m_YDrive: ArticulationDrive,
pub m_ZDrive: ArticulationDrive,
pub m_CenterOfMass: Option<Vector3f>,
pub m_CollisionDetectionMode: Option<i32>,
pub m_ComputeParentAnchor: Option<bool>,
pub m_ExcludeLayers: Option<BitField>,
pub m_ImplicitCom: Option<bool>,
pub m_ImplicitTensor: Option<bool>,
pub m_IncludeLayers: Option<BitField>,
pub m_InertiaRotation: Option<Quaternionf>,
pub m_InertiaTensor: Option<Vector3f>,
pub m_MatchAnchors: Option<bool>,
pub m_UseGravity: Option<bool>,
}Expand description
ArticulationBody is a class of the Unity engine since version 2020.1.0b1. Exert from Unity’s scripting documentation: 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.
Fields§
§m_AnchorPosition: Vector3fPosition of the anchor relative to this body.
m_AnchorRotation: QuaternionfRotation of the anchor relative to this body.
m_AngularDamping: f32Damping factor that affects how this body resists rotations.
m_ArticulationJointType: i32§m_Enabled: u8Enabled Behaviours are Updated, disabled Behaviours are not.
m_GameObject: PPtrThe game object this component is attached to. A component is always attached to a game object.
PPtr<GameObject>: (2020.1.0b1 - 2022.3.2f1)
m_Immovable: boolAllows you to specify that this body is not movable.
m_JointFriction: f32Allows you to specify the amount of friction that is applied as a result of the parent body moving relative to this body.
m_LinearDamping: f32Damping factor that affects how this body resists linear motion.
m_LinearX: i32§m_LinearY: i32§m_LinearZ: i32§m_Mass: f32The mass of this articulation body.
m_ParentAnchorPosition: Vector3fPosition of the anchor relative to this body’s parent.
m_ParentAnchorRotation: QuaternionfRotation of the anchor relative to this body’s parent.
m_SwingY: i32§m_SwingZ: i32§m_Twist: i32§m_XDrive: ArticulationDriveThe properties of drive along or around X.
m_YDrive: ArticulationDriveThe properties of drive along or around Y.
m_ZDrive: ArticulationDriveThe properties of drive along or around Z.
m_CenterOfMass: Option<Vector3f>The center of mass of the body defined in local space. Vector3f: (2022.2.0b1 - 2022.3.2f1)
m_CollisionDetectionMode: Option<i32>The ArticulationBody’s collision detection mode. i32: (2020.3.5f1 - 2022.3.2f1)
m_ComputeParentAnchor: Option<bool>bool: (2020.1.0b1 - 2021.2.0a20)
m_ExcludeLayers: Option<BitField>The additional layers that all Colliders attached to this ArticulationBody should exclude when deciding if the Collider can come into contact with another Collider. BitField: (2022.2.0b1 - 2022.3.2f1)
m_ImplicitCom: Option<bool>bool: (2022.2.0b1 - 2022.3.2f1)
m_ImplicitTensor: Option<bool>bool: (2022.2.0b1 - 2022.3.2f1)
m_IncludeLayers: Option<BitField>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. BitField: (2022.2.0b1 - 2022.3.2f1)
m_InertiaRotation: Option<Quaternionf>Quaternionf: (2022.2.0b1 - 2022.3.2f1)
m_InertiaTensor: Option<Vector3f>The inertia tensor of this body. Vector3f: (2022.2.0b1 - 2022.3.2f1)
m_MatchAnchors: Option<bool>Whether the parent anchor should be computed automatically or not. bool: (2021.2.0b1 - 2022.3.2f1)
m_UseGravity: Option<bool>Controls whether gravity affects this articulation body. bool: (2020.1.0b1 - 2022.3.2f1)