Skip to main content

Ray

Complete API reference for Ray, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Laser

Component: no


public class Ray

Constructors

SignatureDescription
Ray(Ray)Executes Ray and returns after the underlying engine call finishes.
Ray()Executes Ray and returns after the underlying engine call finishes.
Ray(JAVARuntime.RayDirection, float)Creates a new instance of Ray.
Ray(Vector3, Vector3, float)Creates a new instance of Ray.

Attributes

NameTypeDescription
rayRayRepresents the ray value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
physicsLayerPhysicsLayerget/setReturns the PhysicsLayer of this Ray.

Methods

SignatureReturnsDescription
getRayDirection()JAVARuntime.RayDirectionReturns the RayDirection of this Ray.
setRayDirection(JAVARuntime.RayDirection)voidSets the RayDirection of this Ray.
getDistance()floatReturns the distance of this Ray.
setDistance(float)voidSets the distance of this Ray.