| Package | PBLabs.Rendering2D |
| Class | public final class RayHitInfo |
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
CopyFrom(other:RayHitInfo):void
Copy state from another RayHitInfo, overwriting the information in this
RayHitInfo.
| RayHitInfo | ||
| HitObject | property |
public var HitObject:ISpatialObject2DThe specific object the ray struck.
| Normal | property |
public var Normal:PointNormal of the contact.
| Position | property |
public var Position:PointPosition of the contact.
| Time | property |
public var Time:NumberRanges from 0..1, 0 being at the start of the ray and 1 at the end. Indicates location of contact along the ray.
| CopyFrom | () | method |
public function CopyFrom(other:RayHitInfo):voidCopy state from another RayHitInfo, overwriting the information in this RayHitInfo.
Parametersother:RayHitInfo |