Skip to main content

LaserHit

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

Package: JAVARuntime

Category: Laser

Component: no


public class LaserHit

Constructors

SignatureDescription
LaserHit(LaserHit)Executes LaserHit and returns after the underlying engine call finishes.
LaserHit()Executes LaserHit and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
laserHitLaserHitRepresents the laserHit value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
colliderColliderget/setReturns the Collider the Laser collided with.
colliderObjectSpatialObjectget/setReturns the object the Laser collided with.
distancefloatget/setReturns the distance between the Laser origin and the point it collided.
faceNormalVector3get/setReturns the normal vector of the face the Laser collided with.
normalVector3get/setReturns the normal vector of the Laser's direction.
objectSpatialObjectget/setReturns the object hit by the Laser.
pointVector3get/setReturns the point where the Laser hit.
uVCoordVector2get/setReturns the UV coordinates of the point the Laser collided with.