Component:AvatarPoseBoxConstraint

From Resonite Wiki
Revision as of 20:45, 20 December 2024 by 989onan (talk | contribs) (Add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Avatar Pose Box Constraint component as seen in the Scene Inspector

The AvatarPoseBoxConstraint component is a BodyPoseFilter that can be used in the construction of tool tips, anchors, grabbable items, and more. This pose filter is used to force the slot corresponding to a body node (In the case of a hand for example, it will constrict the position of the hand bone position, rather than the whole hand) to stay within a rotatable box specified.

Pose filters are used with components such as the Component:GrabbableAvatarPoseFilter or Component:AvatarAnchor in order to restrict movement of any Type:BodyNode. These components do so by telling the game to apply these pose filters when they interact with said objects. In the case of an Avatar Anchor, this happens while seated. With the grabbable pose filter, this happens when any Type:IGrabbable with the component on the same Slot is grabbed. This component when used with such components can be used to control placement of a user's hand on an item.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
BoxSize Float3 the size of the box that a user's body node should be constrained within. (0,0,0) is valid for this field.
DefaultPoseReference Slot the slot which the box will be positioned, rotated, and scaled by. If null, this is the slot this component is on.
ProcessSimulatedPoses Bool Whether to affect simulated poses like from the animation system.

Usage

This is widely used in seats where the user's legs and hips are posed in a sitting position, like when sitting in a car.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.



See Also