|
Base class for game objects which use datablocks, networking, are editable, and need to process ticks. More...
Public Member Functions | |
bool | applyImpulse (Point3F pos, VectorF vel) |
Apply an impulse to this object as defined by a world position and velocity vector. | |
void | applyRadialImpulse (Point3F origin, float radius, float magnitude) |
Applies a radial impulse to the object using the given origin and force. | |
int | getDataBlock () |
Get the datablock used by this object. | |
bool | setDataBlock (GameBaseData data) |
Assign this GameBase to use the specified datablock. | |
Callbacks | |
void | setControl (bool controlled) |
Called when the client controlling the object changes. | |
Public Attributes | |
Game | |
GameBaseData | dataBlock |
Script datablock used for game objects. | |
Static Public Attributes | |
static bool | boundingBox |
Toggles on the rendering of the bounding boxes for certain types of objects in scene. | |
static bool | isRenderable |
Disables rendering of all instances of this type. | |
static bool | isSelectable |
Disables selection of all instances of this type. |
Base class for game objects which use datablocks, networking, are editable, and need to process ticks.
bool GameBase::applyImpulse | ( | Point3F | pos, | |
VectorF | vel | |||
) |
Apply an impulse to this object as defined by a world position and velocity vector.
pos | impulse world position | |
vel | impulse velocity (impulse force F = m * v) |
void GameBase::applyRadialImpulse | ( | Point3F | origin, | |
float | radius, | |||
float | magnitude | |||
) |
Applies a radial impulse to the object using the given origin and force.
origin | World point of origin of the radial impulse. | |
radius | The radius of the impulse area. | |
magnitude | The strength of the impulse. |
int GameBase::getDataBlock | ( | ) |
Get the datablock used by this object.
void GameBase::setControl | ( | bool | controlled | ) |
Called when the client controlling the object changes.
controlled | true if a client now controls this object, false if no client controls this object. |
bool GameBase::setDataBlock | ( | GameBaseData | data | ) |
Assign this GameBase to use the specified datablock.
data | new datablock to use |
bool GameBase::boundingBox [static] |
Toggles on the rendering of the bounding boxes for certain types of objects in scene.
Script datablock used for game objects.
bool GameBase::isRenderable [static] |
Disables rendering of all instances of this type.
Reimplemented from SceneObject.
Reimplemented in ShapeBase, MissionMarker, WayPoint, StaticShape, Explosion, ParticleEmitter, Splash, PhysicsDebris, PxCloth, Vehicle, HoverVehicle, Player, AIPlayer, Camera, Debris, Item, SpawnSphere, PathCamera, Projectile, RigidShape, Trigger, Lightning, ParticleEmitterNode, Precipitation, PhysicsShape, PxMultiActor, FlyingVehicle, and WheeledVehicle.
bool GameBase::isSelectable [static] |
Disables selection of all instances of this type.
Reimplemented from SceneObject.
Reimplemented in ShapeBase, MissionMarker, WayPoint, StaticShape, Explosion, ParticleEmitter, Splash, PhysicsDebris, PxCloth, Vehicle, HoverVehicle, Player, AIPlayer, Camera, Debris, Item, SpawnSphere, PathCamera, Projectile, RigidShape, Trigger, Lightning, ParticleEmitterNode, Precipitation, PhysicsShape, PxMultiActor, FlyingVehicle, and WheeledVehicle.