Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.opengl.colision.MeshCollider Interface Reference

A mesh collider is a container for 3D objects used for collision tests. More...

Inheritance diagram for com.beyondar.android.opengl.colision.MeshCollider:

Public Member Functions

boolean contains (Point3 p)
 Returns true if the given point is contained by the mesh collider. More...
 
Point3 getIntersectionPoint (Ray r)
 Test whether a ray intersects with the mesh collider. More...
 
boolean intersects (Ray r)
 Return if the given ray intersects with the mesh collider. More...
 

Detailed Description

A mesh collider is a container for 3D objects used for collision tests.

mesh colliders are usually less complicated than the actual 3D object. They are usually cubes or spheres to simplify calculations.

Member Function Documentation

boolean com.beyondar.android.opengl.colision.MeshCollider.contains ( Point3  p)

Returns true if the given point is contained by the mesh collider.

false otherwise

Parameters
pthe point
Returns
true if the given point is contained by the armature. false otherwise

Implemented in com.beyondar.android.opengl.colision.SquareMeshCollider, and com.beyondar.android.opengl.colision.SphericalMeshCollider.

Point3 com.beyondar.android.opengl.colision.MeshCollider.getIntersectionPoint ( Ray  r)

Test whether a ray intersects with the mesh collider.

If it does, returns the intersection point. If it doesn't, returns null

Parameters
rthe ray
Returns
the intersection point. null if there is no intersection

Implemented in com.beyondar.android.opengl.colision.SphericalMeshCollider, and com.beyondar.android.opengl.colision.SquareMeshCollider.

boolean com.beyondar.android.opengl.colision.MeshCollider.intersects ( Ray  r)

Return if the given ray intersects with the mesh collider.

Parameters
rthe ray
Returns
true if there is intersection. false otherwise

Implemented in com.beyondar.android.opengl.colision.SphericalMeshCollider, and com.beyondar.android.opengl.colision.SquareMeshCollider.


The documentation for this interface was generated from the following file: