Represents a single physics shape used for collision detections. More...
#include <Physics/PhysicsShape.h>
Classes | |
| struct | PhysicsShapeData |
| Holds all of the data needed to fully descibe a PhysicsShape. More... | |
Public Types | |
| enum | PhysicsShapeType { PSHAPE_UNKNOWN = -1, PSHAPE_CIRCLE = 0, PSHAPE_BOX, PSHAPE_POLY, PSHAPE_COUNT } |
Defines the differant shape types allowed by the PhysicsShape class. More... | |
Public Member Functions | |
| PhysicsShape () | |
| Constructor. | |
| ~PhysicsShape () | |
| Deconstructor. | |
| void | SetCollisionGroups (CollisionGroup belongsTo, CollisionGroup collidesWith) |
| Sets the collision groups that the shape will belong to and will collide with. | |
| void | MultiplyTransform (const Matrixf &m) |
| Transforms the shape by the given Matrix. | |
| AABB | GetBoundingBox () const |
| Computes the bounding box for the shaped. | |
| PhysicsObject * | GetOwner () const |
| Gets the PhysicsObject associated with this shape. | |
Protected Member Functions | |
| void | SetCollisionFilters () |
| Sets the collison filters used by Box2D. | |
Represents a single physics shape used for collision detections.
Defines the differant shape types allowed by the PhysicsShape class.
| AABB PhysicsShape::GetBoundingBox | ( | ) | const |
Computes the bounding box for the shaped.
| PhysicsObject * PhysicsShape::GetOwner | ( | ) | const |
Gets the PhysicsObject associated with this shape.
| void PhysicsShape::MultiplyTransform | ( | const Matrixf & | m | ) |
| void PhysicsShape::SetCollisionGroups | ( | CollisionGroup | belongsTo, | |
| CollisionGroup | collidesWith | |||
| ) |
Sets the collision groups that the shape will belong to and will collide with.
| [in] | belongsTo | the groups that the shape belongs to. |
| [in] | collidesWith | the groups that the shaoe collides with. |
1.6.3