ParelVRDocs
Player site

Creators / Component reference

Motion Bones and Contacts

Secondary motion for hair, tails and clothes, and touch between avatars.

Motion Bone#

ParelMotionBone Add Component > ParelVR / Avatar SDK / Motion Bone

Motion Bone: secondary motion for hair, tails, ears, skirts and anything else hanging off the avatar, simulated from rootTransform down through every child bone. Supports pull / momentum / stiffness / gravity (+ falloff) / immobile, angle / hinge / polar limits, stretch and squish, colliders (its own list plus everyone's hands and fingers), grabbing and posing, and the {parameter}_IsGrabbed / _IsPosed / _Angle / _Stretch / _Squish parameters. The simulation is local: every client runs it for every avatar, no bone is networked.

Field Type Description
Version Version 1.1 adds Max Squish and Stretch Motion. Keep 1.0 for Motion Bones tuned before that.
Root Transform Transform Where the chain starts (empty = this object). Everything below it moves.
Ignore Transforms List<Transform> Bones (and everything under them) that stay out of the simulation, e.g. eyes under a head-rooted hair chain.
Endpoint Position Vector3 Adds a virtual bone past each end bone (in that bone's local space) so end bones rotate too.
Multi Child Type MultiChildType What a bone with several children does: Ignore leaves its rotation alone, First aims it at the first child, Average at all of them.
Integration Type IntegrationType Simplified: Pull and Spring only, easy to tune. Advanced: adds Stiffness and treats Spring as Momentum.
Pull float How strongly bones return to their rest pose.
Pull Curve AnimationCurve
Spring float Simplified: how much bones wobble. Advanced: momentum.
Spring Curve AnimationCurve
Stiffness float Advanced only: how much bones keep their rest angle.
Stiffness Curve AnimationCurve
Gravity float Pulls bones down (positive) or up (negative), relative to their length.
Gravity Curve AnimationCurve
Gravity Falloff float Less gravity for bones already hanging down at rest.
Gravity Falloff Curve AnimationCurve
Immobile Type ImmobileType All Motion: Immobile ignores any movement of the chain. World: only the avatar moving through the world (walking, flying), not its own animation.
Immobile float How much movement is ignored (1 = bones don't react to you moving).
Immobile Curve AnimationCurve
Limit Type LimitType Angle: a cone around the rest direction. Hinge: swing in one plane only. Polar: a cone with separate X and Z widths.
Max Angle X float How far (degrees) a bone may swing away from its rest direction.
Max Angle X Curve AnimationCurve
Max Angle Z float Polar only: how far (degrees) a bone may swing sideways.
Max Angle Z Curve AnimationCurve
Limit Rotation Vector3 Rotates the limit's axis / hinge plane.
Radius float Thickness of each bone for collisions and grabbing, in the root's scale (0 = a thin line).
Radius Curve AnimationCurve
Allow Collision ParelDynamicsPermission Whose hand / finger colliders bump these bones. The Colliders list below always applies.
Colliders List<ParelMotionBoneCollider> Colliders on this avatar the bones can't pass through (body, head, legs...).
Max Stretch float How far bones may stretch, as a multiple of their length.
Max Stretch Curve AnimationCurve
Max Squish float How far bones may squish, as a fraction of their length.
Max Squish Curve AnimationCurve
Stretch Motion float How much movement and gravity stretch / squish the bones (0 = only grabbing does).
Stretch Motion Curve AnimationCurve
Allow Grabbing ParelDynamicsPermission Whose hands may grab these bones.
Allow Posing ParelDynamicsPermission Whose hands may leave the bones posed when letting go.
Grab Movement float How quickly a grabbed bone follows the hand.
Snap To Hand bool Grabbed bones jump to the hand instead of keeping their offset.
Parameter string Base name for {name}_IsGrabbed, _IsPosed, _Angle, _Stretch and _Squish (empty = none).
Is Animated bool Tick if an animation moves these bones (they aren't reset each frame).
Reset When Disabled bool Put the bones back in their original pose when this component is disabled.
Show Gizmos bool Draw the chain, radii and limits in the Scene view while selected.
Bone Opacity float
Limit Opacity float

Motion Bone Collider#

ParelMotionBoneCollider Add Component > ParelVR / Avatar SDK / Motion Bone Collider

Motion Bone Collider: a sphere, capsule or plane that Motion Bones can't pass through (or, with Inside Bounds, can't leave). Add it to a Motion Bone's Colliders list. ParelVR also puts these on every avatar's hands and fingers automatically, so people can touch each other's hair and tails.

Field Type Description
Root Transform Transform Transform the shape follows (empty = this object).
Shape Type ShapeType Sphere, capsule, or an endless plane bones stay above (along the shape's local Y axis).
Inside Bounds bool Keep bones inside the shape instead of outside it (sphere / capsule).
Radius float Sphere / capsule radius, in this transform's scale.
Height float Capsule: total height, including the rounded ends. Along the shape's local Y axis.
Position Vector3 Offset of the shape from the Root Transform, in its local space.
Rotation Quaternion
Bones As Spheres bool Treat Motion Bone bones as spheres at their tips instead of capsules along their length.

Contact Base#

ParelContactBase

Shape, tags and switches shared by Contact Senders and Receivers.

Field Type Description
Root Transform Transform Transform the shape follows (empty = this object).
Shape Type ShapeType
Radius float
Height float Capsule: total height including the rounded ends, along local Y.
Size Vector3 Box: width, height and depth.
Position Vector3
Rotation Quaternion
Collision Tags List<string> A sender and receiver touch only if they share at least one tag (up to 16, case-sensitive).
Local Only bool Only exists on the wearer's own client, and does not count toward the performance rank.
Active When string Avatar parameter that switches this contact on: it exists only while the parameter is true or not 0. Empty = always on. Saves animating the component on and off.

Contact Sender#

ParelContactSender Add Component > ParelVR / Avatar SDK / Contact Sender

A Contact Sender: a shape with tags that Contact Receivers react to. Every avatar also carries automatic senders on its head, torso, hands, feet and fingers (see ParelStandardContacts), tagged Head, Torso, Hand, HandL, HandR, Foot, FootL, FootR, Finger, FingerL, FingerR, FingerIndex, FingerIndexL ... so receivers only need those tags to react to people.

Contact Receiver#

ParelContactReceiver Add Component > ParelVR / Avatar SDK / Contact Receiver

A Contact Receiver: reacts when a Contact Sender with a matching tag touches it. One receiver can drive several parameters at once (touching, taps, proximity, speed, the direction it was touched from, who touched it), so a headpat or a boop is one component instead of three. Pulses (Entered / Exited) are held long enough that no animator misses them, and the controller of the hand that touches can buzz. In a world, a receiver calls its On Enter / On Exit events instead (wire them to a Volt script's method like a UI button).

Field Type Description
Receiver Type ReceiverType
Parameter string The avatar parameter this receiver sets (Bool / Int / Float).
Value float What Constant and On Enter set the parameter to while active.
Outputs List<Output> More parameters from the same contact: taps, proximity, speed, direction, who touched it.
Allow Self bool React to senders on this same avatar.
Allow Others bool React to senders on other avatars and in the world.
Sources Sources Which senders count: other avatars, the world's own senders, or both.
Min Velocity float On Enter and Taps: slowest sender speed (m/s) that counts as a touch.
Hold float Seconds that On Enter, Entered and Exited stay on, so animators and other players never miss them.
Smoothing float Seconds over which Proximity, Speed and Direction glide to new values (0 = instantly).
Proximity From Front bool Box receivers: Proximity measures from the front (+Z) face instead of the centre.
Haptics float The controller of the hand that touches this vibrates, 0 to 1 (the wearer's own hands, in VR).
On Contact Enter UnityEvent Worlds only: called when a touch starts. Ignored on avatars.
On Contact Exit UnityEvent Worlds only: called when the last touch ends. Ignored on avatars.