This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image ![](/images/thumb/2/2d/RayDriverComponent.png/510px-RayDriverComponent.png)
Ray Driver component as seen in the Scene Inspector
![](/images/thumb/2/2d/RayDriverComponent.png/510px-RayDriverComponent.png)
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. Some components stop their functionality when this field is disabled, but some don't. |
MaxDistance
|
Float | the max distance that A and B can be from each other |
PointA
|
reference drive of Sync`1<Float3> | what to drive with the local space start position of the Raycast |
PointB
|
reference drive of 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