ReactPhysics3D  v0.10.1
C++ Physics engine library
reactphysics3d::JointInfo Struct Reference

This structure is used to gather the information needed to create a joint. More...

#include <include/reactphysics3d/constraint/Joint.h>

Inheritance diagram for reactphysics3d::JointInfo:
reactphysics3d::BallAndSocketJointInfo reactphysics3d::FixedJointInfo reactphysics3d::HingeJointInfo reactphysics3d::SliderJointInfo

Public Member Functions

 JointInfo (JointType constraintType)
 Constructor.
 
 JointInfo (RigidBody *rigidBody1, RigidBody *rigidBody2, JointType constraintType)
 Constructor.
 
virtual ~JointInfo ()=default
 Destructor.
 

Public Attributes

RigidBodybody1
 First rigid body of the joint.
 
RigidBodybody2
 Second rigid body of the joint.
 
JointType type
 Type of the joint.
 
JointsPositionCorrectionTechnique positionCorrectionTechnique
 Position correction technique used for the constraint (used for joints). More...
 
bool isCollisionEnabled
 True if the two bodies of the joint are allowed to collide with each other.
 

Detailed Description

This structure is used to gather the information needed to create a joint.

Member Data Documentation

◆ positionCorrectionTechnique

JointsPositionCorrectionTechnique reactphysics3d::JointInfo::positionCorrectionTechnique

Position correction technique used for the constraint (used for joints).

By default, the NON_LINEAR_GAUSS_SEIDEL technique is used


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