Ball Class Reference
#include <Ball.h>
Inheritance diagram for Ball:
# Public Member Functions | |
| void | constructor (Entity owner, const ColliderSpec *colliderSpec) |
| Class' constructor. | |
| override void | resize (fixed_t sizeDelta) |
| override void | configureWireframe () |
| Configure the wireframe used to show the collider. | |
| override void | print (int32 x, int32 y) |
# Static Public Member Functions | |
| static void | project (Vector3D center, fixed_t radius, Vector3D vector, fixed_t *min, fixed_t *max) |
# Protected Attributes | |
| SphereSpec * | sphereSpec |
| Mesh used to draw the collider. | |
| fixed_t | radius |
| The radius of the ball. | |
# Additional Inherited Members | |
Private Types inherited from Collider | |
| enum | CollisionResult |
| enum | ColliderClassIndexes |
| typedef const ColliderSpec | ColliderROMSpec |
Private Member Functions inherited from Collider | |
| void | constructor (Entity owner, const ColliderSpec *colliderSpec) |
| Class' constructor. | |
| override bool | onEvent (ListenerObject eventFirer, uint16 eventCode) |
| override bool | handleMessage (Telegram telegram) |
| override void | handleCommand (int32 command, va_list args) |
| void | enable () |
| Enable the collider for collision checks. | |
| void | disable () |
| Disable the collider for collision checks. | |
| void | setLayers (uint32 layers) |
| uint32 | getLayers () |
| void | setLayersToIgnore (uint32 layersToIgnore) |
| uint32 | getLayersToIgnore () |
| void | checkCollisions (bool checkCollisions) |
| void | registerCollisions (bool registerCollisions) |
| CollisionResult | collides (Collider collider) |
| void | resolveCollision (const CollisionInformation *collisionInformation) |
| bool | canMoveTowards (Vector3D displacement) |
| void | discardCollisions () |
| Discard any registered collision. | |
| fixed_t | getCollidingFrictionCoefficient () |
| void | show () |
| Show the collider. | |
| void | hide () |
| Hide the collider. | |
| virtual Vector3D | getNormal () |
Private Attributes inherited from Collider | |
| Vector3D | position |
| Displaced position. | |
| VirtualList | otherColliders |
| List of colliding colliders. | |
| uint32 | layers |
| Layers on which this collider live. | |
| uint32 | layersToIgnore |
| Layers to ignore when checking for collisions. | |
| Wireframe | wireframe |
| Wireframe to make the collider visible (mainly for debugging purposes) | |
| bool | enabled |
| If false, it is ignored in all callision checks. | |
| uint8 | checkForCollisions |
| If false, it doesn't check collision against other colliders. | |
| bool | registerCollisions |
| If true, it registers other colliders when a collision arises. | |
| uint8 | classIndex |
| Class index to avoid using __GET_CAST when checking for collisions. | |
| bool | invalidPosition |
| Flag to force the computation of the collider's position. | |
# Detailed Description
# Member Function Documentation
# configureWireframe()
|
virtual |
Configure the wireframe used to show the collider.
color
Transparency mode (__TRANSPARENCY_NONE, __TRANSPARENCY_EVEN or __TRANSPARENCY_ODD)
Flag to render the wireframe in interlaced mode
Radius
Flag to control the drawing of the sphere's center point
Implements Collider.
# constructor()
| void Ball::constructor | ( | Entity | owner, |
| const ColliderSpec * | colliderSpec ) |
# print()
# project()
|
static |
Project the diameter of a circle defined by its centers and radius onto the provided vector.
- Parameters
-
center Center of the circle whose diameter is projected radius Radius of the circle whose diameter is projected vector Vector onto which to project the circle's diameter min min: Variable to store the value of the lowest value of the projection max max: Variable to store the value of the biggest value of the projection
# resize()
|
virtual |
# Member Data Documentation
# radius
# sphereSpec
|
protected |
The documentation for this class was generated from the following files:
Private Types inherited from