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

Method SetForceAndVelocity

ogsr_engine/xrGame/PHJoint.cpp:616–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 // if(m_joint1)dJointAttach(m_joint1,pFirst_element->get_body(),pSecond_element->get_body());
615}
616void CPHJoint::SetForceAndVelocity(const float force, const float velocity, const int axis_num)
617{
618 if (pShell && pShell->isActive())
619 pShell->Enable();
620 SetForce(force, axis_num);
621 SetVelocity(velocity, axis_num);
622}
623
624void CPHJoint::GetMaxForceAndVelocity(float& force, float& velocity, int axis_num)
625{

Callers 1

AddElementRecursiveMethod · 0.80

Calls 2

isActiveMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected