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

Method to_string

src/constraint/SliderJoint.cpp:330–338  ·  view source on GitHub ↗

Return a string representation

Source from the content-addressed store, hash-verified

328
329// Return a string representation
330std::string SliderJoint::to_string() const {
331 return "SliderJoint{ lowerLimit=" + std::to_string(mWorld.mSliderJointsComponents.getLowerLimit(mEntity)) + ", upperLimit=" + std::to_string(mWorld.mSliderJointsComponents.getUpperLimit(mEntity)) +
332 "localAnchorPointBody1=" + mWorld.mSliderJointsComponents.getLocalAnchorPointBody1(mEntity).to_string() + ", localAnchorPointBody2=" +
333 mWorld.mSliderJointsComponents.getLocalAnchorPointBody2(mEntity).to_string() + ", sliderAxisBody1=" + mWorld.mSliderJointsComponents.getSliderAxisBody1(mEntity).to_string() +
334 ", initOrientationDifferenceInv=" +
335 mWorld.mSliderJointsComponents.getInitOrientationDifferenceInv(mEntity).to_string() + ", motorSpeed=" + std::to_string(getMotorSpeed()) +
336 ", maxMotorForce=" + std::to_string(getMaxMotorForce()) + ", isLimitEnabled=" +
337 (mWorld.mSliderJointsComponents.getIsLimitEnabled(mEntity) ? "true" : "false") + ", isMotorEnabled=" + (mWorld.mSliderJointsComponents.getIsMotorEnabled(mEntity) ? "true" : "false") + "}";
338}

Callers

nothing calls this directly

Calls 4

getLowerLimitMethod · 0.45
getUpperLimitMethod · 0.45
getIsLimitEnabledMethod · 0.45
getIsMotorEnabledMethod · 0.45

Tested by

no test coverage detected