MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / to_string

Method to_string

src/constraint/HingeJoint.cpp:309–321  ·  view source on GitHub ↗

Return a string representation

Source from the content-addressed store, hash-verified

307
308// Return a string representation
309std::string HingeJoint::to_string() const {
310 return "HingeJoint{ lowerLimit=" + std::to_string(mWorld.mHingeJointsComponents.getLowerLimit(mEntity)) +
311 ", upperLimit=" + std::to_string(mWorld.mHingeJointsComponents.getUpperLimit(mEntity)) +
312 "localAnchorPointBody1=" + mWorld.mHingeJointsComponents.getLocalAnchorPointBody1(mEntity).to_string() + ", localAnchorPointBody2=" +
313 mWorld.mHingeJointsComponents.getLocalAnchorPointBody2(mEntity).to_string() + ", hingeLocalAxisBody1=" +
314 mWorld.mHingeJointsComponents.getHingeLocalAxisBody1(mEntity).to_string() +
315 ", hingeLocalAxisBody2=" + mWorld.mHingeJointsComponents.getHingeLocalAxisBody2(mEntity).to_string() +
316 ", initOrientationDifferenceInv=" + mWorld.mHingeJointsComponents.getInitOrientationDifferenceInv(mEntity).to_string() +
317 ", motorSpeed=" + std::to_string(mWorld.mHingeJointsComponents.getMotorSpeed(mEntity)) +
318 ", maxMotorTorque=" + std::to_string(mWorld.mHingeJointsComponents.getMaxMotorTorque(mEntity)) + ", isLimitEnabled=" +
319 (mWorld.mHingeJointsComponents.getIsLimitEnabled(mEntity) ? "true" : "false") + ", isMotorEnabled=" +
320 (mWorld.mHingeJointsComponents.getIsMotorEnabled(mEntity) ? "true" : "false") + "}";
321}

Callers

nothing calls this directly

Calls 6

getLowerLimitMethod · 0.45
getUpperLimitMethod · 0.45
getMotorSpeedMethod · 0.45
getMaxMotorTorqueMethod · 0.45
getIsLimitEnabledMethod · 0.45
getIsMotorEnabledMethod · 0.45

Tested by

no test coverage detected