PackagePBLabs.Rendering2D
Classpublic final class RayHitInfo

Information about the results of a ray cast. Used with ISpatialManager2D.CastRay().



Public Properties
 PropertyDefined by
  HitObject : ISpatialObject2D
The specific object the ray struck.
RayHitInfo
  Normal : Point
Normal of the contact.
RayHitInfo
  Position : Point
Position of the contact.
RayHitInfo
  Time : Number
Ranges from 0..1, 0 being at the start of the ray and 1 at the end.
RayHitInfo
Public Methods
 MethodDefined by
  
CopyFrom(other:RayHitInfo):void
Copy state from another RayHitInfo, overwriting the information in this RayHitInfo.
RayHitInfo
Property detail
HitObjectproperty
public var HitObject:ISpatialObject2D

The specific object the ray struck.

Normalproperty 
public var Normal:Point

Normal of the contact.

Positionproperty 
public var Position:Point

Position of the contact.

Timeproperty 
public var Time:Number

Ranges from 0..1, 0 being at the start of the ray and 1 at the end. Indicates location of contact along the ray.

Method detail
CopyFrom()method
public function CopyFrom(other:RayHitInfo):void

Copy state from another RayHitInfo, overwriting the information in this RayHitInfo.

Parameters
other:RayHitInfo