Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <Joint.h>
Public Member Functions | |
const JointType & | getJointType () const |
Gets joint type. | |
Joint () | |
Joint (const std::string &name) | |
void | setActors (Body *body1, Body *body2) |
virtual void | setAnchor (const core::vector3d &anchor) |
virtual void | setAxis (const core::vector3d &axis) |
virtual | ~Joint () |
Protected Member Functions | |
void | initProperties () |
Protected Attributes | |
Body * | mActor1 |
Body * | mActor2 |
core::vector3d | mAnchor |
core::vector3d | mAxis |
JointType | mJointType |
Static Protected Attributes | |
static u32 | msNextGeneratedJointIndex = 0 |
Defines a physical joint. Author: Kat'Oun version: 1.0
physics::Joint::Joint | ( | ) |
References initProperties(), physics::JT_UNDEFINED, mJointType, engine::Object::mObjectType, and engine::OT_JOINT.
physics::Joint::Joint | ( | const std::string & | name | ) |
References initProperties(), physics::JT_UNDEFINED, mJointType, engine::Object::mObjectType, and engine::OT_JOINT.
physics::Joint::~Joint | ( | ) | [virtual] |
References mActor1, mActor2, and engine::Object::removeDependency().
const JointType & physics::Joint::getJointType | ( | ) | const |
Gets joint type.
References mJointType.
void physics::Joint::initProperties | ( | ) | [protected] |
Reimplemented in physics::SphericalJoint, physics::HingeJoint, physics::SliderJoint, physics::GenericJoint, and physics::RigidJoint.
References mActor1, mActor2, mAnchor, mAxis, core::vector3d::NEGATIVE_UNIT_Y, and core::vector3d::ORIGIN_3D.
Referenced by Joint().
References engine::Object::addDependency(), mActor1, and mActor2.
void physics::Joint::setAnchor | ( | const core::vector3d & | anchor | ) | [virtual] |
References mAnchor.
void physics::Joint::setAxis | ( | const core::vector3d & | axis | ) | [virtual] |
References mAxis.
Body* physics::Joint::mActor1 [protected] |
Referenced by initProperties(), setActors(), and ~Joint().
Body* physics::Joint::mActor2 [protected] |
Referenced by initProperties(), setActors(), and ~Joint().
core::vector3d physics::Joint::mAnchor [protected] |
Referenced by initProperties(), and setAnchor().
core::vector3d physics::Joint::mAxis [protected] |
Referenced by initProperties(), and setAxis().
JointType physics::Joint::mJointType [protected] |
u32 physics::Joint::msNextGeneratedJointIndex = 0 [static, protected] |
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:08 by
Doxygen
(1.7.4)
|