MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / CaptureObject

Method CaptureObject

ogsr_engine/xrGame/PHSimpleCharacter.cpp:1146–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144}
1145
1146void CPHSimpleCharacter::CaptureObject(dBodyID body, const dReal* anchor)
1147{
1148 m_capture_joint = dJointCreateBall(0, 0);
1149 Island().AddJoint(m_capture_joint);
1150 dJointAttach(m_capture_joint, m_body, body);
1151 dJointSetBallAnchor(m_capture_joint, anchor[0], anchor[1], anchor[2]);
1152 dJointSetFeedback(m_capture_joint, &m_capture_joint_feedback);
1153}
1154
1155void CPHSimpleCharacter::CapturedSetPosition(const dReal* position)
1156{

Callers

nothing calls this directly

Calls 5

dJointCreateBallFunction · 0.85
dJointAttachFunction · 0.85
dJointSetBallAnchorFunction · 0.85
dJointSetFeedbackFunction · 0.85
AddJointMethod · 0.80

Tested by

no test coverage detected