|
Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
Motor joint definition. More...
#include <MotorJoint.hpp>
Public Member Functions | |
| constexpr | MotorJointDef () noexcept |
| void | Initialize (Body *bodyA, Body *bodyB) |
| Initialize the bodies and offsets using the current transforms. More... | |
Public Member Functions inherited from box2d::JointDef | |
| JointDef ()=delete | |
| Deleted default constructor for abstract base class. More... | |
| constexpr | JointDef (JointType t) noexcept |
| constexpr | JointDef (JointType t, Body *bA, Body *bB, bool cc=false, void *u=nullptr) noexcept |
Public Attributes | |
| Length2D | linearOffset = Vec2_zero * Meter |
| Position of bodyB minus the position of bodyA, in bodyA's frame, in meters. More... | |
| Angle | angularOffset = Angle{0} |
| The bodyB angle minus bodyA angle in radians. More... | |
| Force | maxForce = RealNum{1} * Newton |
| The maximum motor force in N. More... | |
| Torque | maxTorque = RealNum{1} * NewtonMeter |
| The maximum motor torque in N-m. More... | |
| RealNum | correctionFactor = RealNum(0.3) |
| Position correction factor in the range [0,1]. More... | |
Public Attributes inherited from box2d::JointDef | |
| const JointType | type |
| The joint type is set automatically for concrete joint types. More... | |
| Body * | bodyA = nullptr |
| The first attached body. More... | |
| Body * | bodyB = nullptr |
| The second attached body. More... | |
| bool | collideConnected = false |
| Set this flag to true if the attached bodies should collide. More... | |
| void * | userData = nullptr |
| Use this to attach application specific data to your joints. More... | |
Motor joint definition.
|
inlinenoexcept |
Initialize the bodies and offsets using the current transforms.
Position correction factor in the range [0,1].
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
| Torque box2d::MotorJointDef::maxTorque = RealNum{1} * NewtonMeter |
The maximum motor torque in N-m.
1.8.14