Wasabi
Public Member Functions | Protected Attributes | List of all members
WConstraint Class Referenceabstract
Inheritance diagram for WConstraint:
WBase WBallAndSocket WHinge WLimitedHinge WPrismaticConstraint WPulley WStiffSpring

Public Member Functions

 WConstraint (class Wasabi *const app, uint32_t ID=0)
 
virtual void Build (const WRigidBody *const rb1, const WRigidBody *const rb2, bool breakable=false)=0
 
void SetBreakingThreshold (float threshold)
 
void SetMaxLinearImpulse (float impulse)
 
hkpConstraintData * GetConstraint () const
 
bool Valid () const
 
- Public Member Functions inherited from WBase
 WBase (class Wasabi *const app, uint32_t ID=0)
 
virtual void SetID (uint32_t newID)=0
 
virtual void SetName (std::string newName)=0
 
uint32_t GetID () const
 
std::string GetName () const
 
class WasabiGetAppPtr () const
 
void AddReference ()
 
void RemoveReference ()
 

Protected Attributes

hkpRigidBody * m_rb1
 
hkpRigidBody * m_rb2
 
hkpWorld * m_world
 
hkpConstraintData * m_constraint
 
hkpConstraintInstance * m_instance
 
hkpBreakableConstraintData * m_breakableConstraint
 
- Protected Attributes inherited from WBase
class Wasabim_app
 
uint32_t m_ID
 
std::string m_name
 

Member Function Documentation

◆ Valid()

bool WConstraint::Valid ( ) const
virtual

Must be implemented by the child. This function should report the validity status of the object, in whatever sense of "validity" it chooses.

Returns
true if the object is "valid", false otherwise

Implements WBase.


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