imported>Xekri No edit summary |
Add info |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
|Name=Ray Driver | |Name=Ray Driver | ||
}} | }} | ||
A ray driver is a component that takes a start origin and a direction and drives point A and B via a RayCast, keeping the distance between the two below MaxDistance. | |||
<!--T:2--> | <!--T:2--> | ||
== Fields == | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|MaxDistance|Float| | |MaxDistance|Float| the max distance that A and B can be from each other | ||
|PointA|Sync`1| | |PointA|{{RootFieldType|DriveRef`1|[[Type:Sync`1|Sync`1]]<[[Type:Float3|Float3]]>}}|TypeAdv1=true| what to drive with the local space start position of the Raycast | ||
|PointB|Sync`1| | |PointB|{{RootFieldType|DriveRef`1|[[Type:Sync`1|Sync`1]]<[[Type:Float3|Float3]]>}}|TypeAdv2=true| what to drive with the local space end point of the raycast | ||
|LocalOrigin|Float3| | |LocalOrigin|Float3| the local space start point of the raycast | ||
|LocalDirection|Float3| | |LocalDirection|Float3| the direction in local space to fire the raycast in. | ||
}} | }} | ||
Line 24: | Line 25: | ||
<!--T:4--> | <!--T:4--> | ||
== Examples == | == Examples == | ||
Laser pointer or grapple hook. This can be used as a lighter weight version of the [[Component:RaycastDriver|Raycast driver component]] | |||
<!--T:5--> | <!--T:5--> | ||
== Related Components == | == Related Components == | ||
[[Component:RaycastDriver|RaycastDriver component]] | |||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Ray Driver]] | [[Category:Components{{#translation:}}|Ray Driver]] | ||
[[Category:Components:Transform:Drivers{{#translation:}}|Ray Driver]] | [[Category:Components:Transform:Drivers{{#translation:}}|Ray Driver]] |
Latest revision as of 16:46, 24 October 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
A ray driver is a component that takes a start origin and a direction and drives point A and B via a RayCast, keeping the distance between the two below MaxDistance.
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. |
MaxDistance
|
Float | the max distance that A and B can be from each other |
PointA
|
direct DriveRef`1<Sync`1<Float3>> | what to drive with the local space start position of the Raycast |
PointB
|
direct DriveRef`1<Sync`1<Float3>> | what to drive with the local space end point of the raycast |
LocalOrigin
|
Float3 | the local space start point of the raycast |
LocalDirection
|
Float3 | the direction in local space to fire the raycast in. |
Usage
Examples
Laser pointer or grapple hook. This can be used as a lighter weight version of the Raycast driver component