A snap circle is a component that is able to generate a point on a circle along a plane 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) When provided a point, it finds the closest point on a circle and normal and returns that 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
|Radius|Float|
|Radius|Float| How big the circle should be
|Normal|Float3|
|Normal|Float3| which direction the circle should face
|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 drawing tools.
A snap circle is a component that is able to generate a point on a circle along a plane 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) When provided a point, it finds the closest point on a circle and normal and returns that 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.