Package | flare.collisions |
Class | public class CollisionInfo |
Inheritance | CollisionInfo ![]() |
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
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
CollisionInfo |
mesh | property |
public var mesh:Mesh3D
Mesh it collided with.
normal | property |
public var normal:Vector3D
Collision normal in the global space of the scene.
point | property |
public var point:Vector3D
Point it collided with in the global space of the scene.
poly | property |
public var poly:Poly3D
Polygon of the mesh it collided with.
surface | property |
public var surface:Surface3D
surface it collided with.
u | property |
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.
v | property |
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.
CollisionInfo | () | Constructor |
public function CollisionInfo()