载入中...
搜索中...
未找到
eve::physics::Joint3D类 参考

Script-facing joint owned by a World3D. Legacy scalar/void methods adapt the checked backend contract. 更多...

#include <Joint3D.h>

Public 类型

using Kind = JointKind3D
 Supported joint geometry.
 

Public 成员函数

 Joint3D (World3D *world, Body3D *bodyA, Body3D *bodyB, std::unique_ptr< IJointBackend3D > backend, PhysicsJointHandle runtimeHandle, Kind kind, int id)
 Internal wrapper constructor; use World3D::new*Joint.
 
 ~Joint3D ()
 
 Joint3D (const Joint3D &)=delete
 
Joint3D & operator= (const Joint3D &)=delete
 
int getId () const
 Stable world-local identifier.
 
PhysicsJointHandle runtimeHandle () const noexcept
 Process-local generation-qualified handle owned by World3D.
 
std::string getKind () const
 Joint kind string for script/debug ("distance", "revolute", …, "filter").
 
int getBodyAId () const
 Stable ID of attached body A, or -1 after invalidation.
 
int getBodyBId () const
 Stable ID of attached body B, or -1 after invalidation.
 
World3D * getWorld () const noexcept
 Owning world, or null after joint destruction.
 
eve::Result< JointFrames3D > localFrames () const
 Reads both body-local constraint frames without exposing native IDs.
 
void setCollideConnected (bool collide)
 Enables or disables collision between the attached bodies.
 
bool getCollideConnected () const
 Whether attached bodies may collide.
 
void setForceThreshold (float threshold)
 Sets the force threshold that emits a joint-stress event, in newtons.
 
float getForceThreshold () const
 Current force event threshold in newtons.
 
void setTorqueThreshold (float threshold)
 Sets the torque threshold that emits a joint-stress event, in newton-metres.
 
float getTorqueThreshold () const
 Current torque event threshold in newton-metres.
 
float getConstraintForceX () const
 Current world-space constraint force X in newtons.
 
float getConstraintForceY () const
 Current world-space constraint force Y in newtons.
 
float getConstraintForceZ () const
 Current world-space constraint force Z in newtons.
 
float getConstraintTorqueX () const
 Current world-space constraint torque X in newton-metres.
 
float getConstraintTorqueY () const
 Current world-space constraint torque Y in newton-metres.
 
float getConstraintTorqueZ () const
 Current world-space constraint torque Z in newton-metres.
 
float getLinearSeparation () const
 Current inadmissible linear separation error in metres.
 
float getAngularSeparation () const
 Current inadmissible angular separation error in radians.
 
void setDistanceLength (float length)
 Changes distance-joint rest length in metres.
 
float getDistanceLength () const
 Distance-joint rest length in metres.
 
float getDistanceCurrentLength () const
 Current anchor-to-anchor distance in metres.
 
void setDistanceSpring (bool enabled, float hertz, float dampingRatio)
 Configures a distance spring; hertz and damping must be non-negative.
 
void setDistanceLimits (bool enabled, float minimum, float maximum)
 Configures optional distance limits in metres.
 
void setDistanceMotor (bool enabled, float speed, float maxForce)
 Configures the distance motor in metres/second and newtons.
 
void setRevoluteSpring (bool enabled, float targetAngle, float hertz, float dampingRatio)
 Configures a revolute angular spring in radians.
 
void setRevoluteLimits (bool enabled, float lower, float upper)
 Configures revolute angular limits in radians.
 
void setRevoluteMotor (bool enabled, float speed, float maxTorque)
 Configures the revolute motor in radians/second and newton-metres.
 
float getRevoluteAngle () const
 Current revolute angle in radians.
 
float getRevoluteMotorTorque () const
 Current revolute motor torque in newton-metres.
 
void setPrismaticSpring (bool enabled, float targetTranslation, float hertz, float dampingRatio)
 Configures a prismatic linear spring and target translation.
 
void setPrismaticLimits (bool enabled, float lower, float upper)
 Configures prismatic translation limits in metres.
 
void setPrismaticMotor (bool enabled, float speed, float maxForce)
 Configures a prismatic motor in metres/second and newtons.
 
float getPrismaticTranslation () const
 Current prismatic translation in metres.
 
float getPrismaticSpeed () const
 Current prismatic translation speed in metres/second.
 
float getPrismaticMotorForce () const
 Current prismatic motor force in newtons.
 
void setSphericalConeLimit (bool enabled, float angle)
 Enables a spherical cone limit in radians, within [0, pi].
 
void setSphericalTwistLimits (bool enabled, float lower, float upper)
 Enables spherical twist limits in radians.
 
void setSphericalMotor (bool enabled, float velocityX, float velocityY, float velocityZ, float maxTorque)
 Configures spherical motor velocity and maximum torque.
 
float getSphericalConeAngle () const
 Current spherical cone angle in radians.
 
float getSphericalTwistAngle () const
 Current spherical twist angle in radians.
 
void setWheelSuspension (bool enabled, float hertz, float dampingRatio)
 Configures wheel suspension spring stiffness and damping.
 
void setWheelSuspensionLimits (bool enabled, float lower, float upper)
 Configures wheel suspension travel limits in metres.
 
void setWheelSpinMotor (bool enabled, float speed, float maxTorque)
 Configures wheel spin motor speed and maximum torque.
 
void setWheelSteering (bool enabled, float targetAngle, float hertz, float dampingRatio, float maxTorque)
 Configures steering target, stiffness, damping and maximum torque.
 
void setWheelSteeringLimits (bool enabled, float lower, float upper)
 Configures steering angular limits in radians.
 
float getWheelSpinSpeed () const
 Current wheel spin speed in radians/second.
 
float getWheelSpinTorque () const
 Current wheel spin motor torque in newton-metres.
 
float getWheelSteeringAngle () const
 Current wheel steering angle in radians.
 
float getWheelSteeringTorque () const
 Current steering torque in newton-metres.
 
void setWeldLinearSpring (float hertz, float dampingRatio)
 Configures weld linear spring stiffness and damping; 0 hertz is rigid.
 
void setWeldAngularSpring (float hertz, float dampingRatio)
 Configures weld angular spring stiffness and damping; 0 hertz is rigid.
 
float getWeldLinearHertz () const
 Weld linear stiffness in Hertz.
 
float getWeldLinearDampingRatio () const
 Weld linear damping ratio.
 
float getWeldAngularHertz () const
 Weld angular stiffness in Hertz.
 
float getWeldAngularDampingRatio () const
 Weld angular damping ratio.
 
void setMotorLinearVelocity (float vx, float vy, float vz)
 Sets motor-joint relative linear velocity in metres/second.
 
void setMotorAngularVelocity (float wx, float wy, float wz)
 Sets motor-joint relative angular velocity in radians/second.
 
void setMotorVelocityLimits (float maxForce, float maxTorque)
 Sets motor velocity force/torque limits.
 
void setMotorLinearSpring (float hertz, float dampingRatio, float maxForce)
 Configures motor linear position spring.
 
void setMotorAngularSpring (float hertz, float dampingRatio, float maxTorque)
 Configures motor angular position spring.
 
float getMotorLinearVelocityX () const
 Desired motor linear velocity X in metres/second.
 
float getMotorLinearVelocityY () const
 Desired motor linear velocity Y in metres/second.
 
float getMotorLinearVelocityZ () const
 Desired motor linear velocity Z in metres/second.
 
float getMotorAngularVelocityX () const
 Desired motor angular velocity X in radians/second.
 
float getMotorAngularVelocityY () const
 Desired motor angular velocity Y in radians/second.
 
float getMotorAngularVelocityZ () const
 Desired motor angular velocity Z in radians/second.
 
void setParallelSpring (float hertz, float dampingRatio, float maxTorque)
 Configures parallel-joint spring stiffness, damping and torque cap.
 
float getParallelHertz () const
 Parallel spring stiffness in Hertz.
 
float getParallelDampingRatio () const
 Parallel spring damping ratio.
 
float getParallelMaxTorque () const
 Parallel maximum spring torque in newton-metres.
 
void destroy ()
 Destroys the backend joint and invalidates this wrapper.
 
bool isValid () const
 Whether the backend joint still exists.
 
void invalidate ()
 Internal invalidation used by body/world destruction.
 

友元

struct box3d::Access
 
class box3d::WorldBackend
 
struct WorldSnapshotAccess
 
struct PortableWorldSnapshotAccess
 
class Body3D
 
class World3D
 

详细描述

Script-facing joint owned by a World3D. Legacy scalar/void methods adapt the checked backend contract.

在文件 Joint3D.h 第 27 行定义.

成员类型定义说明

◆ Kind

Supported joint geometry.

备注
Stress-event kind codes append new values; keep this order stable: 0 Distance, 1 Revolute, 2 Prismatic, 3 Spherical, 4 Wheel, 5 Weld, 6 Motor, 7 Parallel, 8 Filter.

在文件 Joint3D.h 第 34 行定义.

构造及析构函数说明

◆ Joint3D() [1/2]

eve::physics::Joint3D::Joint3D ( World3D *  world,
Body3D *  bodyA,
Body3D *  bodyB,
std::unique_ptr< IJointBackend3D >  backend,
PhysicsJointHandle  runtimeHandle,
Kind  kind,
int  id 
)

Internal wrapper constructor; use World3D::new*Joint.

在文件 Joint3D.cpp 第 17 行定义.

引用了 EV_PARAM_CHECK.

◆ ~Joint3D()

eve::physics::Joint3D::~Joint3D ( )

在文件 Joint3D.cpp 第 29 行定义.

引用了 destroy().

◆ Joint3D() [2/2]

eve::physics::Joint3D::Joint3D ( const Joint3D &  )
delete

成员函数说明

◆ destroy()

void eve::physics::Joint3D::destroy ( )

Destroys the backend joint and invalidates this wrapper.

在文件 Joint3D.cpp 第 39 行定义.

引用了 invalidate().

被这些函数引用 eve::physics::Mechanism3D::destroy() , 以及 ~Joint3D().

◆ getAngularSeparation()

float eve::physics::Joint3D::getAngularSeparation ( ) const

Current inadmissible angular separation error in radians.

在文件 Joint3D.cpp 第 120 行定义.

引用了 isValid().

◆ getBodyAId()

int eve::physics::Joint3D::getBodyAId ( ) const

Stable ID of attached body A, or -1 after invalidation.

在文件 Joint3D.cpp 第 58 行定义.

引用了 eve::physics::Body3D::getId().

◆ getBodyBId()

int eve::physics::Joint3D::getBodyBId ( ) const

Stable ID of attached body B, or -1 after invalidation.

在文件 Joint3D.cpp 第 59 行定义.

引用了 eve::physics::Body3D::getId().

◆ getCollideConnected()

bool eve::physics::Joint3D::getCollideConnected ( ) const

Whether attached bodies may collide.

在文件 Joint3D.cpp 第 71 行定义.

引用了 isValid().

◆ getConstraintForceX()

float eve::physics::Joint3D::getConstraintForceX ( ) const

Current world-space constraint force X in newtons.

在文件 Joint3D.cpp 第 92 行定义.

引用了 isValid().

◆ getConstraintForceY()

float eve::physics::Joint3D::getConstraintForceY ( ) const

Current world-space constraint force Y in newtons.

在文件 Joint3D.cpp 第 96 行定义.

引用了 isValid().

◆ getConstraintForceZ()

float eve::physics::Joint3D::getConstraintForceZ ( ) const

Current world-space constraint force Z in newtons.

在文件 Joint3D.cpp 第 100 行定义.

引用了 isValid().

◆ getConstraintTorqueX()

float eve::physics::Joint3D::getConstraintTorqueX ( ) const

Current world-space constraint torque X in newton-metres.

在文件 Joint3D.cpp 第 104 行定义.

引用了 isValid().

◆ getConstraintTorqueY()

float eve::physics::Joint3D::getConstraintTorqueY ( ) const

Current world-space constraint torque Y in newton-metres.

在文件 Joint3D.cpp 第 108 行定义.

引用了 isValid().

◆ getConstraintTorqueZ()

float eve::physics::Joint3D::getConstraintTorqueZ ( ) const

Current world-space constraint torque Z in newton-metres.

在文件 Joint3D.cpp 第 112 行定义.

引用了 isValid().

◆ getDistanceCurrentLength()

float eve::physics::Joint3D::getDistanceCurrentLength ( ) const

Current anchor-to-anchor distance in metres.

在文件 Joint3D.cpp 第 126 行定义.

◆ getDistanceLength()

float eve::physics::Joint3D::getDistanceLength ( ) const

Distance-joint rest length in metres.

在文件 Joint3D.cpp 第 125 行定义.

◆ getForceThreshold()

float eve::physics::Joint3D::getForceThreshold ( ) const

Current force event threshold in newtons.

在文件 Joint3D.cpp 第 79 行定义.

引用了 isValid().

◆ getId()

int eve::physics::Joint3D::getId ( ) const
inline

Stable world-local identifier.

在文件 Joint3D.h 第 45 行定义.

◆ getKind()

std::string eve::physics::Joint3D::getKind ( ) const

Joint kind string for script/debug ("distance", "revolute", …, "filter").

在文件 Joint3D.cpp 第 43 行定义.

◆ getLinearSeparation()

float eve::physics::Joint3D::getLinearSeparation ( ) const

Current inadmissible linear separation error in metres.

在文件 Joint3D.cpp 第 116 行定义.

引用了 isValid().

◆ getMotorAngularVelocityX()

float eve::physics::Joint3D::getMotorAngularVelocityX ( ) const

Desired motor angular velocity X in radians/second.

在文件 Joint3D.cpp 第 221 行定义.

◆ getMotorAngularVelocityY()

float eve::physics::Joint3D::getMotorAngularVelocityY ( ) const

Desired motor angular velocity Y in radians/second.

在文件 Joint3D.cpp 第 222 行定义.

◆ getMotorAngularVelocityZ()

float eve::physics::Joint3D::getMotorAngularVelocityZ ( ) const

Desired motor angular velocity Z in radians/second.

在文件 Joint3D.cpp 第 223 行定义.

◆ getMotorLinearVelocityX()

float eve::physics::Joint3D::getMotorLinearVelocityX ( ) const

Desired motor linear velocity X in metres/second.

在文件 Joint3D.cpp 第 218 行定义.

◆ getMotorLinearVelocityY()

float eve::physics::Joint3D::getMotorLinearVelocityY ( ) const

Desired motor linear velocity Y in metres/second.

在文件 Joint3D.cpp 第 219 行定义.

◆ getMotorLinearVelocityZ()

float eve::physics::Joint3D::getMotorLinearVelocityZ ( ) const

Desired motor linear velocity Z in metres/second.

在文件 Joint3D.cpp 第 220 行定义.

◆ getParallelDampingRatio()

float eve::physics::Joint3D::getParallelDampingRatio ( ) const

Parallel spring damping ratio.

在文件 Joint3D.cpp 第 228 行定义.

◆ getParallelHertz()

float eve::physics::Joint3D::getParallelHertz ( ) const

Parallel spring stiffness in Hertz.

在文件 Joint3D.cpp 第 227 行定义.

◆ getParallelMaxTorque()

float eve::physics::Joint3D::getParallelMaxTorque ( ) const

Parallel maximum spring torque in newton-metres.

在文件 Joint3D.cpp 第 229 行定义.

◆ getPrismaticMotorForce()

float eve::physics::Joint3D::getPrismaticMotorForce ( ) const

Current prismatic motor force in newtons.

在文件 Joint3D.cpp 第 160 行定义.

◆ getPrismaticSpeed()

float eve::physics::Joint3D::getPrismaticSpeed ( ) const

Current prismatic translation speed in metres/second.

在文件 Joint3D.cpp 第 159 行定义.

◆ getPrismaticTranslation()

float eve::physics::Joint3D::getPrismaticTranslation ( ) const

Current prismatic translation in metres.

在文件 Joint3D.cpp 第 158 行定义.

被这些函数引用 eve::physics::Mechanism3D::getSliderTranslation().

◆ getRevoluteAngle()

float eve::physics::Joint3D::getRevoluteAngle ( ) const

Current revolute angle in radians.

在文件 Joint3D.cpp 第 146 行定义.

被这些函数引用 eve::physics::Mechanism3D::getDriveAngle().

◆ getRevoluteMotorTorque()

float eve::physics::Joint3D::getRevoluteMotorTorque ( ) const

Current revolute motor torque in newton-metres.

在文件 Joint3D.cpp 第 147 行定义.

◆ getSphericalConeAngle()

float eve::physics::Joint3D::getSphericalConeAngle ( ) const

Current spherical cone angle in radians.

在文件 Joint3D.cpp 第 171 行定义.

◆ getSphericalTwistAngle()

float eve::physics::Joint3D::getSphericalTwistAngle ( ) const

Current spherical twist angle in radians.

在文件 Joint3D.cpp 第 172 行定义.

◆ getTorqueThreshold()

float eve::physics::Joint3D::getTorqueThreshold ( ) const

Current torque event threshold in newton-metres.

在文件 Joint3D.cpp 第 87 行定义.

引用了 isValid().

◆ getWeldAngularDampingRatio()

float eve::physics::Joint3D::getWeldAngularDampingRatio ( ) const

Weld angular damping ratio.

在文件 Joint3D.cpp 第 202 行定义.

◆ getWeldAngularHertz()

float eve::physics::Joint3D::getWeldAngularHertz ( ) const

Weld angular stiffness in Hertz.

在文件 Joint3D.cpp 第 201 行定义.

◆ getWeldLinearDampingRatio()

float eve::physics::Joint3D::getWeldLinearDampingRatio ( ) const

Weld linear damping ratio.

在文件 Joint3D.cpp 第 200 行定义.

◆ getWeldLinearHertz()

float eve::physics::Joint3D::getWeldLinearHertz ( ) const

Weld linear stiffness in Hertz.

在文件 Joint3D.cpp 第 199 行定义.

◆ getWheelSpinSpeed()

float eve::physics::Joint3D::getWheelSpinSpeed ( ) const

Current wheel spin speed in radians/second.

在文件 Joint3D.cpp 第 189 行定义.

◆ getWheelSpinTorque()

float eve::physics::Joint3D::getWheelSpinTorque ( ) const

Current wheel spin motor torque in newton-metres.

在文件 Joint3D.cpp 第 190 行定义.

◆ getWheelSteeringAngle()

float eve::physics::Joint3D::getWheelSteeringAngle ( ) const

Current wheel steering angle in radians.

在文件 Joint3D.cpp 第 191 行定义.

◆ getWheelSteeringTorque()

float eve::physics::Joint3D::getWheelSteeringTorque ( ) const

Current steering torque in newton-metres.

在文件 Joint3D.cpp 第 192 行定义.

◆ getWorld()

World3D * eve::physics::Joint3D::getWorld ( ) const
inlinenoexcept

Owning world, or null after joint destruction.

在文件 Joint3D.h 第 55 行定义.

◆ invalidate()

void eve::physics::Joint3D::invalidate ( )

Internal invalidation used by body/world destruction.

在文件 Joint3D.cpp 第 31 行定义.

引用了 eve::physics::World3D::forgetJoint() , 以及 eve::RuntimeHandle< PhysicsJointHandleTag >::invalid().

被这些函数引用 destroy().

◆ isValid()

◆ localFrames()

eve::Result< JointFrames3D > eve::physics::Joint3D::localFrames ( ) const

Reads both body-local constraint frames without exposing native IDs.

返回
Owning frame values, or StaleHandle after joint invalidation. @ownership The result owns all frame components. @lifetime Independent of later joint or world destruction. @thread Call on the owning simulation thread, between steps. @reentrancy Does not invoke callbacks or mutate the solver.

在文件 Joint3D.cpp 第 61 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.

◆ operator=()

Joint3D & eve::physics::Joint3D::operator= ( const Joint3D &  )
delete

◆ runtimeHandle()

PhysicsJointHandle eve::physics::Joint3D::runtimeHandle ( ) const
inlinenoexcept

Process-local generation-qualified handle owned by World3D.

在文件 Joint3D.h 第 47 行定义.

被这些函数引用 eve::physics::World3D::forgetJoint().

◆ setCollideConnected()

void eve::physics::Joint3D::setCollideConnected ( bool  collide)

Enables or disables collision between the attached bodies.

在文件 Joint3D.cpp 第 67 行定义.

引用了 isValid().

◆ setDistanceLength()

void eve::physics::Joint3D::setDistanceLength ( float  length)

Changes distance-joint rest length in metres.

在文件 Joint3D.cpp 第 124 行定义.

引用了 length.

◆ setDistanceLimits()

void eve::physics::Joint3D::setDistanceLimits ( bool  enabled,
float  minimum,
float  maximum 
)

Configures optional distance limits in metres.

在文件 Joint3D.cpp 第 130 行定义.

引用了 enabled, maximum , 以及 minimum.

◆ setDistanceMotor()

void eve::physics::Joint3D::setDistanceMotor ( bool  enabled,
float  speed,
float  maxForce 
)

Configures the distance motor in metres/second and newtons.

在文件 Joint3D.cpp 第 133 行定义.

引用了 enabled , 以及 maxForce.

◆ setDistanceSpring()

void eve::physics::Joint3D::setDistanceSpring ( bool  enabled,
float  hertz,
float  dampingRatio 
)

Configures a distance spring; hertz and damping must be non-negative.

在文件 Joint3D.cpp 第 127 行定义.

引用了 dampingRatio , 以及 enabled.

◆ setForceThreshold()

void eve::physics::Joint3D::setForceThreshold ( float  threshold)

Sets the force threshold that emits a joint-stress event, in newtons.

在文件 Joint3D.cpp 第 75 行定义.

引用了 isValid().

◆ setMotorAngularSpring()

void eve::physics::Joint3D::setMotorAngularSpring ( float  hertz,
float  dampingRatio,
float  maxTorque 
)

Configures motor angular position spring.

在文件 Joint3D.cpp 第 215 行定义.

引用了 dampingRatio.

◆ setMotorAngularVelocity()

void eve::physics::Joint3D::setMotorAngularVelocity ( float  wx,
float  wy,
float  wz 
)

Sets motor-joint relative angular velocity in radians/second.

在文件 Joint3D.cpp 第 206 行定义.

引用了 wx, wy , 以及 wz.

◆ setMotorLinearSpring()

void eve::physics::Joint3D::setMotorLinearSpring ( float  hertz,
float  dampingRatio,
float  maxForce 
)

Configures motor linear position spring.

在文件 Joint3D.cpp 第 212 行定义.

引用了 dampingRatio , 以及 maxForce.

◆ setMotorLinearVelocity()

void eve::physics::Joint3D::setMotorLinearVelocity ( float  vx,
float  vy,
float  vz 
)

Sets motor-joint relative linear velocity in metres/second.

在文件 Joint3D.cpp 第 203 行定义.

引用了 vx, vy , 以及 vz.

◆ setMotorVelocityLimits()

void eve::physics::Joint3D::setMotorVelocityLimits ( float  maxForce,
float  maxTorque 
)

Sets motor velocity force/torque limits.

在文件 Joint3D.cpp 第 209 行定义.

引用了 maxForce.

◆ setParallelSpring()

void eve::physics::Joint3D::setParallelSpring ( float  hertz,
float  dampingRatio,
float  maxTorque 
)

Configures parallel-joint spring stiffness, damping and torque cap.

在文件 Joint3D.cpp 第 224 行定义.

引用了 dampingRatio.

◆ setPrismaticLimits()

void eve::physics::Joint3D::setPrismaticLimits ( bool  enabled,
float  lower,
float  upper 
)

Configures prismatic translation limits in metres.

在文件 Joint3D.cpp 第 152 行定义.

引用了 enabled.

◆ setPrismaticMotor()

void eve::physics::Joint3D::setPrismaticMotor ( bool  enabled,
float  speed,
float  maxForce 
)

Configures a prismatic motor in metres/second and newtons.

在文件 Joint3D.cpp 第 155 行定义.

引用了 enabled , 以及 maxForce.

◆ setPrismaticSpring()

void eve::physics::Joint3D::setPrismaticSpring ( bool  enabled,
float  targetTranslation,
float  hertz,
float  dampingRatio 
)

Configures a prismatic linear spring and target translation.

在文件 Joint3D.cpp 第 148 行定义.

引用了 dampingRatio , 以及 enabled.

◆ setRevoluteLimits()

void eve::physics::Joint3D::setRevoluteLimits ( bool  enabled,
float  lower,
float  upper 
)

Configures revolute angular limits in radians.

在文件 Joint3D.cpp 第 140 行定义.

引用了 enabled.

◆ setRevoluteMotor()

void eve::physics::Joint3D::setRevoluteMotor ( bool  enabled,
float  speed,
float  maxTorque 
)

Configures the revolute motor in radians/second and newton-metres.

在文件 Joint3D.cpp 第 143 行定义.

引用了 enabled.

被这些函数引用 eve::physics::Mechanism3D::clearDrive(), eve::physics::Mechanism3D::setDrive() , 以及 eve::physics::Mechanism3D::syncBeforeStep().

◆ setRevoluteSpring()

void eve::physics::Joint3D::setRevoluteSpring ( bool  enabled,
float  targetAngle,
float  hertz,
float  dampingRatio 
)

Configures a revolute angular spring in radians.

在文件 Joint3D.cpp 第 136 行定义.

引用了 dampingRatio , 以及 enabled.

◆ setSphericalConeLimit()

void eve::physics::Joint3D::setSphericalConeLimit ( bool  enabled,
float  angle 
)

Enables a spherical cone limit in radians, within [0, pi].

在文件 Joint3D.cpp 第 161 行定义.

引用了 angle , 以及 enabled.

◆ setSphericalMotor()

void eve::physics::Joint3D::setSphericalMotor ( bool  enabled,
float  velocityX,
float  velocityY,
float  velocityZ,
float  maxTorque 
)

Configures spherical motor velocity and maximum torque.

在文件 Joint3D.cpp 第 167 行定义.

引用了 enabled.

◆ setSphericalTwistLimits()

void eve::physics::Joint3D::setSphericalTwistLimits ( bool  enabled,
float  lower,
float  upper 
)

Enables spherical twist limits in radians.

在文件 Joint3D.cpp 第 164 行定义.

引用了 enabled.

◆ setTorqueThreshold()

void eve::physics::Joint3D::setTorqueThreshold ( float  threshold)

Sets the torque threshold that emits a joint-stress event, in newton-metres.

在文件 Joint3D.cpp 第 83 行定义.

引用了 isValid().

◆ setWeldAngularSpring()

void eve::physics::Joint3D::setWeldAngularSpring ( float  hertz,
float  dampingRatio 
)

Configures weld angular spring stiffness and damping; 0 hertz is rigid.

在文件 Joint3D.cpp 第 196 行定义.

引用了 dampingRatio.

◆ setWeldLinearSpring()

void eve::physics::Joint3D::setWeldLinearSpring ( float  hertz,
float  dampingRatio 
)

Configures weld linear spring stiffness and damping; 0 hertz is rigid.

在文件 Joint3D.cpp 第 193 行定义.

引用了 dampingRatio.

◆ setWheelSpinMotor()

void eve::physics::Joint3D::setWheelSpinMotor ( bool  enabled,
float  speed,
float  maxTorque 
)

Configures wheel spin motor speed and maximum torque.

在文件 Joint3D.cpp 第 179 行定义.

引用了 enabled.

◆ setWheelSteering()

void eve::physics::Joint3D::setWheelSteering ( bool  enabled,
float  targetAngle,
float  hertz,
float  dampingRatio,
float  maxTorque 
)

Configures steering target, stiffness, damping and maximum torque.

在文件 Joint3D.cpp 第 182 行定义.

引用了 dampingRatio , 以及 enabled.

◆ setWheelSteeringLimits()

void eve::physics::Joint3D::setWheelSteeringLimits ( bool  enabled,
float  lower,
float  upper 
)

Configures steering angular limits in radians.

在文件 Joint3D.cpp 第 186 行定义.

引用了 enabled.

◆ setWheelSuspension()

void eve::physics::Joint3D::setWheelSuspension ( bool  enabled,
float  hertz,
float  dampingRatio 
)

Configures wheel suspension spring stiffness and damping.

在文件 Joint3D.cpp 第 173 行定义.

引用了 dampingRatio , 以及 enabled.

◆ setWheelSuspensionLimits()

void eve::physics::Joint3D::setWheelSuspensionLimits ( bool  enabled,
float  lower,
float  upper 
)

Configures wheel suspension travel limits in metres.

在文件 Joint3D.cpp 第 176 行定义.

引用了 enabled.

友元及相关函数文档

◆ Body3D

friend class Body3D
friend

在文件 Joint3D.h 第 223 行定义.

◆ box3d::Access

friend struct box3d::Access
friend

在文件 Joint3D.h 第 219 行定义.

◆ box3d::WorldBackend

friend class box3d::WorldBackend
friend

在文件 Joint3D.h 第 220 行定义.

◆ PortableWorldSnapshotAccess

friend struct PortableWorldSnapshotAccess
friend

在文件 Joint3D.h 第 222 行定义.

◆ World3D

friend class World3D
friend

在文件 Joint3D.h 第 224 行定义.

◆ WorldSnapshotAccess

friend struct WorldSnapshotAccess
friend

在文件 Joint3D.h 第 221 行定义.


该类的文档由以下文件生成: