Packagecom.fileitup.fisixengine.utils
Classpublic final class RaycastData

Holds the data of a raycasting intersection test. Usually returned from a Raycaster.raycastAll(), Raycaster.raycastParticles() or a Raycaster.raycastSurfaces() call

See also

Raycaster.raycastParticles()
Raycaster.raycastSurfaces()
Raycaster.raycastAll()


Public Properties
 PropertyDefined by
  collisionNormal : Vector
RaycastData
  collisionObject : CollisionObject
The object that the ray intersected with first
RaycastData
  collisionPoint : Vector
A position in global space where the ray touched the collisionObject.
RaycastData
Public Methods
 MethodDefined by
  
RaycastData
Property detail
collisionNormalproperty
public var collisionNormal:Vector
collisionObjectproperty 
public var collisionObject:CollisionObject

The object that the ray intersected with first

collisionPointproperty 
public var collisionPoint:Vector

A position in global space where the ray touched the collisionObject. This value can be used with CollisionObject.applyForcePoint() to move the object that the ray touched

See also

Constructor detail
RaycastData()constructor
public function RaycastData(obj:CollisionObject, coll:Vector, normal:Vector)Parameters
obj:CollisionObject
 
coll:Vector
 
normal:Vector