Ray
Complete API reference for Ray, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Laser
Component: no
public class Ray
Constructors
| Signature | Description |
|---|---|
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
| Name | Type | Description |
|---|---|---|
ray | Ray | Represents the ray value stored on this instance. Read or assign to update the property. |
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
physicsLayer | PhysicsLayer | get/set | Returns the PhysicsLayer of this Ray. |
Methods
| Signature | Returns | Description |
|---|---|---|
getRayDirection() | JAVARuntime.RayDirection | Returns the RayDirection of this Ray. |
setRayDirection(JAVARuntime.RayDirection) | void | Sets the RayDirection of this Ray. |
getDistance() | float | Returns the distance of this Ray. |
setDistance(float) | void | Sets the distance of this Ray. |