Newton Dynamics  4.00
ndMultiBodyVehicleRotor Class Reference
Inheritance diagram for ndMultiBodyVehicleRotor:
ndJointBilateralConstraint ndConstraint dClassAlloc

Public Member Functions

 ndMultiBodyVehicleRotor (ndBodyKinematic *const motor, ndWorld *const world)
 
dFloat32 GetRpm () const
 
dFloat32 GetMaxRpm () const
 
bool GetStart () const
 
D_NEWTON_API void SetStart (bool startkey)
 
D_NEWTON_API void SetThrottle (dFloat32 param)
 
D_NEWTON_API void SetMaxRpm (dFloat32 maxRpm)
 
D_NEWTON_API void SetIdleRpm (dFloat32 idleRpm)
 
D_NEWTON_API void SetEngineTorque (dFloat32 torque)
 
D_NEWTON_API void SetGasValve (dFloat32 radPerSeconds)
 
- Public Member Functions inherited from ndJointBilateralConstraint
D_COLLISION_API ndJointBilateralConstraint (dInt32 maxDof, ndBodyKinematic *const body0, ndBodyKinematic *const body1, const dMatrix &globalMatrix)
 
bool IsCollidable () const
 
virtual ndJointBilateralConstraintGetAsBilateral ()
 
virtual const dUnsigned32 GetRowsCount () const
 
virtual ndBodyKinematicGetBody0 () const
 
virtual ndBodyKinematicGetBody1 () const
 
void CalculateGlobalMatrix (dMatrix &matrix0, dMatrix &matrix1) const
 
D_COLLISION_API dFloat32 CalculateAngle (const dVector &planeDir, const dVector &cosDir, const dVector &sinDir) const
 
virtual D_COLLISION_API void JointAccelerations (ndJointAccelerationDecriptor *const desc)
 
D_COLLISION_API void CalculateLocalMatrix (const dMatrix &pinsAndPivotFrame, dMatrix &localMatrix0, dMatrix &localMatrix1) const
 
D_COLLISION_API void AddAngularRowJacobian (ndConstraintDescritor &desc, const dVector &dir, dFloat32 relAngle)
 
D_COLLISION_API void AddLinearRowJacobian (ndConstraintDescritor &desc, const dVector &pivot0, const dVector &pivot1, const dVector &dir)
 
virtual D_COLLISION_API void DebugJoint (ndConstraintDebugCallback &debugCallback) const
 
D_COLLISION_API dFloat32 CalculateSpringDamperAcceleration (dFloat32 dt, dFloat32 ks, dFloat32 x, dFloat32 kd, dFloat32 v) const
 
const dMatrixGetLocalMatrix0 () const
 
const dMatrixGetLocalMatrix1 () const
 
dVector GetForceBody0 () const
 
dVector GetTorqueBody0 () const
 
dVector GetForceBody1 () const
 
dVector GetTorqueBody1 () const
 
virtual ndJointBilateralSolverModel GetSolverModel () const
 
virtual void SetSolverModel (ndJointBilateralSolverModel model)
 
dFloat32 GetMotorZeroAcceleration (ndConstraintDescritor &desc) const
 
void SetHighFriction (ndConstraintDescritor &desc, dFloat32 friction)
 
void SetLowerFriction (ndConstraintDescritor &desc, dFloat32 friction)
 
void SetMotorAcceleration (ndConstraintDescritor &desc, dFloat32 acceleration)
 
D_COLLISION_API void SetMassSpringDamperAcceleration (ndConstraintDescritor &desc, dFloat32 spring, dFloat32 damper)
 
void SetSkeletonFlag (bool flag)
 
- Public Member Functions inherited from ndConstraint
virtual ndContactGetAsContact ()
 
virtual bool IsBilateral () const
 
void InitPointParam (dgPointParam &param, dFloat32 stiffness, const dVector &p0Global, const dVector &p1Global) const
 
- Public Member Functions inherited from dClassAlloc
 dClassAlloc ()
 Empty.
 
 ~dClassAlloc ()
 Empty.
 
void * operator new (size_t size)
 Overloaded operator new for any subclass derived from dClassAlloc.
 
void operator delete (void *ptr)
 Overloaded operator delete for any subclass derived from dClassAlloc.
 

Additional Inherited Members

- Static Public Member Functions inherited from dClassAlloc
static D_CORE_API void * Malloc (size_t size)
 Generic allocation for any function subclass from dClassAlloc.
 
static D_CORE_API void Free (void *const ptr)
 Generic destruction for any function subclass from dClassAlloc.
 
- Public Attributes inherited from ndConstraint
dFloat32 m_preconditioner0
 
dFloat32 m_preconditioner1
 
dInt32 m_rowCount
 
dInt32 m_rowStart
 
bool m_jointFeebackForce
 
bool m_isInSkeletonLoop
 
- Protected Attributes inherited from ndJointBilateralConstraint
dMatrix m_localMatrix0
 
dMatrix m_localMatrix1
 
dVector m_forceBody0
 
dVector m_torqueBody0
 
dVector m_forceBody1
 
dVector m_torqueBody1
 
dVector m_r0 [DG_BILATERAL_CONTRAINT_DOF]
 
dVector m_r1 [DG_BILATERAL_CONTRAINT_DOF]
 
ndForceImpactPair m_jointForce [DG_BILATERAL_CONTRAINT_DOF]
 
dFloat32 m_motorAcceleration [DG_BILATERAL_CONTRAINT_DOF]
 
ndBodyKinematicm_body0
 
ndBodyKinematicm_body1
 
ndJointList::dListNode * m_worldNode
 
ndJointList::dListNode * m_body0Node
 
ndJointList::dListNode * m_body1Node
 
dFloat32 m_maxAngleError
 
dFloat32 m_defualtDiagonalRegularizer
 
dUnsigned32 m_maxDof: 6
 
dUnsigned32 m_isInSkeleton: 1
 
dUnsigned32 m_mark: 1
 
dUnsigned32 m_enableCollision: 1
 
dInt8 m_rowIsMotor
 
ndJointBilateralSolverModel m_solverModel