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

Method to_string

include/reactphysics3d/engine/Material.h:154–162  ·  view source on GitHub ↗

Return a string representation for the material

Source from the content-addressed store, hash-verified

152
153// Return a string representation for the material
154RP3D_FORCE_INLINE std::string Material::to_string() const {
155
156 std::stringstream ss;
157
158 ss << "frictionCoefficient=" << (mFrictionCoefficientSqrt * mFrictionCoefficientSqrt) << std::endl;
159 ss << "bounciness=" << mBounciness << std::endl;
160
161 return ss.str();
162}
163
164}
165

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected