Packageflare.collisions
Classpublic class CollisionInfo
InheritanceCollisionInfo Inheritance Object

The CollisionInfo class provides information on collisions.

This information is issued by MouseCollision, RayCollision and SphereCollision classes. Each of these classes has a CollisionInfo-type data Vector where the information related to one or more collisions is returned.

See also

flare.collisions.MouseCollision
flare.collisions.RayCollision
flare.collisions.SphereCollision


Public Properties
 PropertyDefined By
  mesh : Mesh3D
Mesh it collided with.
CollisionInfo
  normal : Vector3D
Collision normal in the global space of the scene.
CollisionInfo
  point : Vector3D
Point it collided with in the global space of the scene.
CollisionInfo
  poly : Poly3D
Polygon of the mesh it collided with.
CollisionInfo
  surface : Surface3D
surface it collided with.
CollisionInfo
  u : Number
Horizontal coordinate of texture at the collision point.
CollisionInfo
  v : Number
Vertical coordinate of texture at collision point.
CollisionInfo
Public Methods
 MethodDefined By
  
CollisionInfo
Property Detail
meshproperty
public var mesh:Mesh3D

Mesh it collided with.

normalproperty 
public var normal:Vector3D

Collision normal in the global space of the scene.

pointproperty 
public var point:Vector3D

Point it collided with in the global space of the scene.

polyproperty 
public var poly:Poly3D

Polygon of the mesh it collided with.

surfaceproperty 
public var surface:Surface3D

surface it collided with.

uproperty 
public var u:Number

Horizontal coordinate of texture at the collision point. The value returned corresponds to the texture primary channel and it goes from 0 to 1, where 0 is the left side and 1 is the right side. The right texture pixel results from multiplying the value returned at 'u' by texture width.

vproperty 
public var v:Number

Vertical coordinate of texture at collision point. The value returned corresponds to the texture primary channel and it goes from 0 to 1, where 0 is the upper side and 1 is the lower side. The right texture pixel results from multiplying the value returned at 'v' by texture height.

Constructor Detail
CollisionInfo()Constructor
public function CollisionInfo()