Component:RayDriver

From Resonite Wiki
(Redirected from RayDriver (Component))
This page contains changes which are not marked for translation.


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


Component image 
Ray Driver component as seen in the Scene Inspector

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

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

Related Components

RaycastDriver component