Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
Public Member Functions | Protected Attributes
physics::Shape Class Reference

#include <Shape.h>

Inheritance diagram for physics::Shape:
physics::BoxShape physics::PlaneShape physics::SphereShape

List of all members.

Public Member Functions

const core::quaterniongetOrientation () const
 Gets the orientation of this shape.
const core::vector3dgetPosition () const
 Gets the position of the joint relative to it's body.
const ShapeTypegetShapeType () const
 Gets hape type.
virtual void setOrientation (const core::quaternion &q)
 Sets the orientation applied to this shape.
virtual void setPosition (const core::vector3d &pos)
virtual void setPosition (f32 x, f32 y, f32 z)
 Sets the position of the shape relative to it's body.
 Shape ()
virtual ~Shape ()

Protected Attributes

core::quaternion mOrientation
 Stores the orientation of the shape relative to it's body.
core::vector3d mPosition
 Stores the position/translation of the shape relative to its body.
ShapeType mShapeType

Detailed Description

Defines a physical shape. Author: Kat'Oun version: 1.0


Constructor & Destructor Documentation

physics::Shape::Shape ( )
physics::Shape::~Shape ( ) [virtual]

Member Function Documentation

const core::quaternion & physics::Shape::getOrientation ( ) const

Gets the orientation of this shape.

References mOrientation.

const core::vector3d & physics::Shape::getPosition ( ) const

Gets the position of the joint relative to it's body.

References mPosition.

const ShapeType & physics::Shape::getShapeType ( ) const

Gets hape type.

References mShapeType.

void physics::Shape::setOrientation ( const core::quaternion q) [virtual]

Sets the orientation applied to this shape.

References mOrientation.

void physics::Shape::setPosition ( const core::vector3d pos) [virtual]

References mPosition.

void physics::Shape::setPosition ( f32  x,
f32  y,
f32  z 
) [virtual]

Sets the position of the shape relative to it's body.

References mPosition, core::vector3d::X, core::vector3d::Y, and core::vector3d::Z.


Member Data Documentation

Stores the orientation of the shape relative to it's body.

Referenced by getOrientation(), setOrientation(), and Shape().

Stores the position/translation of the shape relative to its body.

Referenced by getPosition(), setPosition(), and Shape().


The documentation for this class was generated from the following files:

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:08 by Doxygen (1.7.4)