ArticulationBody

class in UnityEngine

/

Hereda de:Behaviour

Cambiar al Manual

Descripción

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.

Variables

anchorPositionPosition of the anchor relative to this body.
anchorRotationPosition of the anchor relative to this body.
angularDampingDamping factor that affects how this body resists rotations.
angularVelocityThe angular velocity of the body defined in world space.
centerOfMassThe center of mass of the body defined in local space.
dofCountThe amount of degrees of freedom of a body.
immovableAllows you to specify that this body is not movable.
indexThe index of the body in the hierarchy of articulation bodies.
inertiaTensorThe inertia tensor of this body.
inertiaTensorRotationLa rotación del tensor de inercia.
isRootIndicates whether this body is the root body of the articulation (Read Only).
jointAccelerationThe joint acceleration in reduced coordinates.
jointForceThe joint force in reduced coordinates.
jointFrictionAllows you to specify the amount of friction that is applied as a result of connected bodies moving relative to this body.
jointPositionThe joint position in reduced coordinates.
jointTypeThe type of joint connecting this body to its parent body.
jointVelocityThe joint velocity in reduced coordinates.
linearDampingDamping factor that affects how this body resists linear motion.
linearLockXThe type of lock along X axis of movement.
linearLockYThe type of lock along Y axis of movement.
linearLockZThe type of lock along Z axis of movement.
massThe mass of this articulation body.
maxAngularVelocityThe maximimum angular velocity of the articulation body measured in radians per second.
maxDepenetrationVelocityThe maximum velocity of an articulation body when moving out of penetrating state.
maxJointVelocityThe maximum joint velocity of the articulation body joint in reduced coordinates.
maxLinearVelocityThe maximum linear velocity of the articulation body measured in meters per second.
parentAnchorPositionPosition of the anchor relative to this body's parent.
parentAnchorRotationPosition of the anchor relative to this body's parent.
sleepThresholdEl umbral de energía normalizado en masa, por debajo del cual los objetos empiezan a dormirse.
solverIterationsThe solverIterations determines how accurately articulation body joints and collision contacts are resolved.
solverVelocityIterationsThe solverVelocityIterations affects how accurately articulation body joints and collision contacts are resolved during bounce.
swingYLockThe magnitude of the conical swing angle relative to Y axis.
swingZLockThe magnitude of the conical swing angle relative to Z axis.
twistLockThe type of lock for twist movement.
useGravityControls whether gravity affects this articulation body.
velocityLinear velocity of the body defined in world space.
worldCenterOfMassThe center of mass of the body defined in world space (Read Only).
xDriveThe properties of drive along or around X.
yDriveThe properties of drive along or around Y.
zDriveThe properties of drive along or around Z.

Funciones Públicas

AddForceAdd force to the articulation body.
AddForceAtPositionApplies a force at a specific position, resulting in applying a torque and force on the object.
AddRelativeForceApplies a force to the articulation body, relative to its local coordinate system.
AddRelativeTorqueApplies a torque to the articulation body, relative to its local coordinate system.
AddTorqueAdd torque to the articulation body.
GetClosestPointReturn the point on the articulation body that is closest to a given one.
GetDenseJacobianCalculates and writes dense Jacobian matrix of the articulation body hierarchy to the supplied struct.
GetDofStartIndicesCalculates and reads back reduced coordinate data start indexes in reduced coordinate data buffer for every articulation body in the hierarchy.
GetDriveTargetsReads back articulation body joint drive targets of the entire hierarchy to the supplied list of floats.
GetDriveTargetVelocitiesReads back articulation body joint drive target velocities of the entire hierarchy to the supplied list of floats .
GetJointAccelerationsReads back articulation body joint accelerations of the entire hierarchy to the supplied list of floats .
GetJointForcesReads back articulation body joint forces of the entire hierarchy to the supplied list of floats .
GetJointPositionsReads back articulation body joint positions of the entire hierarchy to the supplied list of floats .
GetJointVelocitiesReads back articulation body joint velocities of the entire hierarchy to the supplied list of floats .
GetPointVelocityGets the velocity of the articulation body at the specified worldPoint in global space.
GetRelativePointVelocityThe velocity relative to the articulation body at the point relativePoint.
IsSleepingIndicates whether the articulation body is sleeping.
ResetCenterOfMassResets the center of mass of the articulation body.
ResetInertiaTensorResets the inertia tensor value and rotation.
SetDriveTargetsAssigns articulation body joint drive targets for the entire hierarchy of bodies.
SetDriveTargetVelocitiesAssigns articulation body joint drive target velocities for the entire hierarchy of bodies.
SetJointAccelerationsAssigns articulation body joint accelerations for the entire hierarchy of bodies.
SetJointForcesAssigns articulation body joint forces for the entire hierarchy of bodies.
SetJointPositionsAssigns articulation body joint positions for the entire hierarchy of bodies.
SetJointVelocitiesAssigns articulation body joint velocities for the entire hierarchy of bodies.
SleepForces an articulation body to sleep.
TeleportRootTeleport the root body of the articulation to a new pose.
WakeUpForces an articulation body to wake up.

Miembros heredados

Variables

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had active and enabled called?
gameObjectEl game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object.
tagEl tag de este game object.
transformThe Transform attached to this GameObject.

Funciones Públicas

BroadcastMessageLlama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos.
CompareTag¿Este game object está etiquetado con tag?
GetComponentReturns the component of Type type if the GameObject has one attached, null if it doesn't. Will also return disabled components.
GetComponentInChildrenRetorna el componente de tipo type en el GameObject o cualquiera de sus hijos utilizando depth first search (busqueda de profundidad).
GetComponentInParentRetorna el componente de tipo type en el GameObject o cualquiera de sus padres.
GetComponentsRetorna todos los componentes de tipo type en el GameObject.
GetComponentsInChildrenRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus hijo.
GetComponentsInParentRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres.
SendMessageLlama al método denominado methodName en cada MonoBehaviour de este game object.
SendMessageUpwardsLlama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour.
TryGetComponentGets the component of the specified type, if it exists.