Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ContactConstraintPart1< Type1 > Class Template Reference

Decide which members this constraint part needs based on motion type. More...

#include <ContactConstraintPart.h>

Inheritance diagram for ContactConstraintPart1< Type1 >:
ContactConstraintPart< EMotionType::Dynamic, EMotionType::Dynamic > ContactConstraintPart< EMotionType::Dynamic, EMotionType::Kinematic > ContactConstraintPart< EMotionType::Dynamic, EMotionType::Static > ContactConstraintPart< EMotionType::Kinematic, EMotionType::Dynamic > ContactConstraintPart< EMotionType::Static, EMotionType::Dynamic > ContactConstraintPart< Type1, Type2 >

Public Member Functions

void Deactivate ()
 Deactivate this constraint.
 
bool IsActive () const
 Check if constraint is active.
 
void SetTotalLambda (float inLambda)
 Override total lagrange multiplier, can be used to set the initial value for warm starting.
 
float GetTotalLambda () const
 Return lagrange multiplier.
 

Protected Attributes

float mEffectiveMass
 
float mTotalLambda
 
float mBias
 

Detailed Description

template<EMotionType Type1>
class ContactConstraintPart1< Type1 >

Decide which members this constraint part needs based on motion type.

Member Function Documentation

◆ Deactivate()

template<EMotionType Type1>
void ContactConstraintPart1< Type1 >::Deactivate ( )
inline

Deactivate this constraint.

◆ GetTotalLambda()

template<EMotionType Type1>
float ContactConstraintPart1< Type1 >::GetTotalLambda ( ) const
inline

Return lagrange multiplier.

◆ IsActive()

template<EMotionType Type1>
bool ContactConstraintPart1< Type1 >::IsActive ( ) const
inline

Check if constraint is active.

◆ SetTotalLambda()

template<EMotionType Type1>
void ContactConstraintPart1< Type1 >::SetTotalLambda ( float inLambda)
inline

Override total lagrange multiplier, can be used to set the initial value for warm starting.

Member Data Documentation

◆ mBias

template<EMotionType Type1>
float ContactConstraintPart1< Type1 >::mBias
protected

◆ mEffectiveMass

template<EMotionType Type1>
float ContactConstraintPart1< Type1 >::mEffectiveMass
protected

◆ mTotalLambda

template<EMotionType Type1>
float ContactConstraintPart1< Type1 >::mTotalLambda
protected

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