m ProbablePrime moved page SnapPlane (Component) to Component:SnapPlane: Creating component Namespace |
add info, no longer stub |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=SnapPlaneComponent.png | |Image=SnapPlaneComponent.png | ||
|Name=Snap Plane | |Name=Snap Plane | ||
}} | }} | ||
A snap plane is a component that is able to generate a point in a plane shape when given a point by another component. Usually this is used in components like the [[Component:MultiUserAvatarAnchor|Multi User Avatar Anchor Component]] to determine where to place the anchors upon clicking (click point is used in such case). This component will take a given point by another component and find the closest surface point to a plane with a normal + with a center positioned at the slot it is on. This component will then return the point to the component that called it. | |||
The functionality of this component is internal, and cannot be used by [[ProtoFlux]] to snap points using in game code. | |||
<!--T:2--> | <!--T:2--> | ||
== Fields == | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|Normal|Float3| | |Normal|Float3| Determines which direction the plane is facing | ||
|SnapParent|Slot| | |SnapParent|Slot| Where to put slots if the component is being used for slot placement. | ||
}} | }} | ||
<!--T:3--> | <!--T:3--> | ||
== Usage == | == Usage == | ||
Used as an anchor point generator in the [[Component:MultiUserAvatarAnchor|Multi User Avatar Anchor Component]] and other components. | |||
<!--T:4--> | <!--T:4--> | ||
Line 24: | Line 28: | ||
== Related Components == | == Related Components == | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Snap Plane]] | [[Category:Components{{#translation:}}|Snap Plane]] | ||
[[Category:Components:Transform:Snapping{{#translation:}}|Snap Plane]] | [[Category:Components:Transform:Snapping{{#translation:}}|Snap Plane]] |
Revision as of 19:00, 29 February 2024
Component image
A snap plane is a component that is able to generate a point in a plane shape when given a point by another component. Usually this is used in components like the Multi User Avatar Anchor Component to determine where to place the anchors upon clicking (click point is used in such case). This component will take a given point by another component and find the closest surface point to a plane with a normal + with a center positioned at the slot it is on. This component will then return the point to the component that called it.
The functionality of this component is internal, and cannot be used by ProtoFlux to snap points using in game code.
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. |
Normal
|
Float3 | Determines which direction the plane is facing |
SnapParent
|
Slot | Where to put slots if the component is being used for slot placement. |
Usage
Used as an anchor point generator in the Multi User Avatar Anchor Component and other components.