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

Method getBody2

src/constraint/Joint.cpp:50–53  ·  view source on GitHub ↗

Return the reference to the body 2 * @return The second body involved in the joint */

Source from the content-addressed store, hash-verified

48 * @return The second body involved in the joint
49 */
50RigidBody* Joint::getBody2() const {
51 const Entity body2Entiy = mWorld.mJointsComponents.getBody2Entity(mEntity);
52 return mWorld.mRigidBodyComponents.getRigidBody(body2Entiy);
53}
54
55
56// Return the type of the joint

Callers 1

destroyJointMethod · 0.45

Calls 2

getBody2EntityMethod · 0.80
getRigidBodyMethod · 0.45

Tested by

no test coverage detected