OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::P2PivotJoint Class Reference

#include <P2PivotJoint.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 P2PivotJoint ()=default
 
void release ()
 
Vec2 getAnchorPos () const
 
double getJointAngle () const
 
double getJointAngleSpeed () const
 
P2PivotJoint & setLimitsEnabled (bool enabled)
 
bool getLimitsEnabled () const
 
P2PivotJoint & setLimits (double lower, double upper)
 
std::pair< double, double > getLimits () const
 
P2PivotJoint & setMotorEnabled (bool enabled)
 
bool getMotorEnabled () const
 
P2PivotJoint & setMotorSpeed (double speed)
 
double getMotorSpeed () const
 
P2PivotJoint & setMaxMotorTorque (double torque)
 
double getMaxMotorTorque () const
 
Vec2 getReactionForce (double timeStep) const
 
double getReactionTorque (double timeStep) const
 
double getMotorTorque (double timeStep) const
 
void draw (const ColorF &color=Palette::White) const
 

Constructor & Destructor Documentation

◆ P2PivotJoint()

SIV3D_NODISCARD_CXX20 s3d::P2PivotJoint::P2PivotJoint ( )
default

Member Function Documentation

◆ draw()

void s3d::P2PivotJoint::draw ( const ColorF &  color = Palette::White) const

◆ getAnchorPos()

Vec2 s3d::P2PivotJoint::getAnchorPos ( ) const

◆ getJointAngle()

double s3d::P2PivotJoint::getJointAngle ( ) const

◆ getJointAngleSpeed()

double s3d::P2PivotJoint::getJointAngleSpeed ( ) const

◆ getLimits()

std::pair<double, double> s3d::P2PivotJoint::getLimits ( ) const

◆ getLimitsEnabled()

bool s3d::P2PivotJoint::getLimitsEnabled ( ) const

◆ getMaxMotorTorque()

double s3d::P2PivotJoint::getMaxMotorTorque ( ) const

◆ getMotorEnabled()

bool s3d::P2PivotJoint::getMotorEnabled ( ) const

◆ getMotorSpeed()

double s3d::P2PivotJoint::getMotorSpeed ( ) const

◆ getMotorTorque()

double s3d::P2PivotJoint::getMotorTorque ( double  timeStep) const

◆ getReactionForce()

Vec2 s3d::P2PivotJoint::getReactionForce ( double  timeStep) const

◆ getReactionTorque()

double s3d::P2PivotJoint::getReactionTorque ( double  timeStep) const

◆ release()

void s3d::P2PivotJoint::release ( )

◆ setLimits()

P2PivotJoint& s3d::P2PivotJoint::setLimits ( double  lower,
double  upper 
)

◆ setLimitsEnabled()

P2PivotJoint& s3d::P2PivotJoint::setLimitsEnabled ( bool  enabled)

◆ setMaxMotorTorque()

P2PivotJoint& s3d::P2PivotJoint::setMaxMotorTorque ( double  torque)

◆ setMotorEnabled()

P2PivotJoint& s3d::P2PivotJoint::setMotorEnabled ( bool  enabled)

◆ setMotorSpeed()

P2PivotJoint& s3d::P2PivotJoint::setMotorSpeed ( double  speed)

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