Component:AvatarPoseRotationConstraint: Difference between revisions

From Resonite Wiki
Add info
Add info see also
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|Name=AvatarPoseRotationConstraint
|Name=AvatarPoseRotationConstraint
}}
}}
The '''AvatarPoseRotationConstraint''' component is used to either restrict the rotation direction of the user's arm when using a tooltip, or to restrict the rotation of a particular [[Type:BodyNode|BodyNode]] when the user is in a [[Component:AvatarAnchor]].
The '''AvatarPoseRotationConstraint''' component is used to either restrict the rotation direction of the user's arm when using a tooltip, or to restrict the rotation of a particular [[Type:BodyNode|BodyNode]].
 
{{Template:PoseFilters}}


<!--T:3-->
<!--T:3-->
Line 13: Line 15:
|MaxTwist|Float| the max twist in degrees allowed for the object being filtered.
|MaxTwist|Float| the max twist in degrees allowed for the object being filtered.
|MaxSwing|Float| the max swing in degrees allowed for the object being filtered.
|MaxSwing|Float| the max swing in degrees allowed for the object being filtered.
|Axis|Float3| swing axis direction for the object being filtered.  
|Axis|Float3| swing axis direction for the object being filtered.
|TwistReferenceAxis|Float3| The twist axis direction for the object being filtered.  
|TwistReferenceAxis|Float3| The twist axis direction for the object being filtered.
}}
}}


Line 27: Line 29:
<!--T:6-->
<!--T:6-->
== See Also ==
== See Also ==
* [[Component:AvatarPoseSmoothLerp]]
{{Template:SeeAlsoPoseConstraint}}
* [[Component:AvatarPoseOffset]]
* [[Component:AvatarPoseRotationConstraint]]
* [[Component:AvatarPoseBoxConstraint]]
</translate>
</translate>
[[Category:Components{{#translation:}}|Avatar Pose Rotation Constraint]]
[[Category:Components{{#translation:}}|Avatar Pose Rotation Constraint]]
[[Category:Components:Users:Common Avatar System:Pose Filters{{#translation:}}|Avatar Pose Rotation Constraint]]
[[Category:Components:Users:Common Avatar System:Pose Filters{{#translation:}}|Avatar Pose Rotation Constraint]]

Latest revision as of 20:51, 20 December 2024

Component image 
AvatarPoseRotationConstraint component as seen in the Scene Inspector

The AvatarPoseRotationConstraint component is used to either restrict the rotation direction of the user's arm when using a tooltip, or to restrict the rotation of a particular BodyNode.

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.
MaxTwist Float the max twist in degrees allowed for the object being filtered.
MaxSwing Float the max swing in degrees allowed for the object being filtered.
Axis Float3 swing axis direction for the object being filtered.
TwistReferenceAxis Float3 The twist axis direction for the object being filtered.

Usage

Used in avatar anchors and in tooltip contraints.

Examples

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


See Also