Represents a spot from laser or IR-pointer. Final class.
Types
Spot.Category enum that stores spot categories.
Spot.Category = { INFRA_RED, LASER }
Static functions
Spot function Spot.createInfraRed(Object source, Vec3 localPoint = nil, Vec3 point)
creates laser ray from the object to the given point.
source
localPoint
point
Spot function Spot.createInfraRed(Object source, Vec3 localPoint = nil, Vec3 point, number laserCode)
creates laser ray from the object to the given point.
source
localPoint
point
laserCode
Member functions
function Spot.destroy(Spot self)
Destroys the spot.
Spot.Category function Spot.getCategory(Spot self)
Returns category of the spot.
Vec3 function Spot.getPoint(Spot self)
Returns position of the spot, end of the beam.
number function Spot.getCode(Spot self)
Returns laser code.
function Spot.setPoint(Spot self, Vec3 point)
Sets position of the spot.
point
function Spot.setCode(Spot self, number code)
Sets position of the spot.
code