PixelLightAPI  .
Public Member Functions | Protected Member Functions | Protected Attributes
PLPhysics::JointHinge Class Reference

Abstract PL physics hinge (other name: revolute) joint. More...

#include <JointHinge.h>

Inheritance diagram for PLPhysics::JointHinge:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual PLPHYSICS_API ~JointHinge ()
 Destructor.
PLPHYSICS_API const
PLMath::Vector3
GetPivotPoint () const
 Returns the origin of the hinge in world space.
PLPHYSICS_API const
PLMath::Vector3
GetPinDir () const
 Returns the line of action of the hinge in world space.
PLPHYSICS_API float GetLowRange () const
 Returns the low range.
PLPHYSICS_API void SetLowRange (float fLowRange=-180.0f)
 Sets the low range.
PLPHYSICS_API float GetHighRange () const
 Returns the high range.
PLPHYSICS_API void SetHighRange (float fHighRange=180.0f)
 Sets the high range.
virtual void AddOmega (float fOmega)=0
 Adds omega to the bodies assigned with this joint.

Protected Member Functions

PLPHYSICS_API JointHinge (World &cWorld, JointImpl &cJointImpl, Body *pParentBody, Body *pChildBody, const PLMath::Vector3 &vPivotPoint, const PLMath::Vector3 &vPinDir)
 Constructor.

Protected Attributes

PLMath::Vector3 m_vPivotPoint
PLMath::Vector3 m_vPinDir

Detailed Description

Abstract PL physics hinge (other name: revolute) joint.

Remarks:
DOFs removed: 5 DOFs remaining: 1

Constructor & Destructor Documentation

virtual PLPHYSICS_API PLPhysics::JointHinge::~JointHinge ( ) [virtual]

Destructor.

PLPHYSICS_API PLPhysics::JointHinge::JointHinge ( World cWorld,
JointImpl &  cJointImpl,
Body pParentBody,
Body pChildBody,
const PLMath::Vector3 vPivotPoint,
const PLMath::Vector3 vPinDir 
) [protected]

Constructor.

Parameters:
[in]cWorldWorld this joint is in
[in]cJointImplReference to the physics API specific joint implementation
[in]pParentBodyPointer to the parent rigid body, can be a null pointer
[in]pChildBodyPointer to the attached rigid body, can be a null pointer
[in]vPivotPointOrigin of the hinge in world space
[in]vPinDirThe line of action of the hinge in world space

Member Function Documentation

PLPHYSICS_API const PLMath::Vector3& PLPhysics::JointHinge::GetPivotPoint ( ) const

Returns the origin of the hinge in world space.

Returns:
The origin of the hinge in world space
PLPHYSICS_API const PLMath::Vector3& PLPhysics::JointHinge::GetPinDir ( ) const

Returns the line of action of the hinge in world space.

Returns:
The line of action of the hinge in world space
PLPHYSICS_API float PLPhysics::JointHinge::GetLowRange ( ) const

Returns the low range.

Returns:
The low range in degree
PLPHYSICS_API void PLPhysics::JointHinge::SetLowRange ( float  fLowRange = -180.0f)

Sets the low range.

Parameters:
[in]fLowRangeNew low range in degree
PLPHYSICS_API float PLPhysics::JointHinge::GetHighRange ( ) const

Returns the high range.

Returns:
The high range in degree
PLPHYSICS_API void PLPhysics::JointHinge::SetHighRange ( float  fHighRange = 180.0f)

Sets the high range.

Parameters:
[in]fHighRangeNew high range in degree
virtual void PLPhysics::JointHinge::AddOmega ( float  fOmega) [pure virtual]

Adds omega to the bodies assigned with this joint.

Parameters:
[in]fOmegaOmega to add

Member Data Documentation

Origin of the hinge in world space

The line of action of the hinge in world space


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:37
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported