MCPcopy Create free account
hub / github.com/axmolengine/axmol / getRatio

Method getRatio

core/physics/PhysicsJoint.cpp:883–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883float PhysicsJointGear::getRatio() const
884{
885 AX_PJOINT_CACHE_READ(_ratio);
886 return PhysicsHelper::cpfloat2float(cpGearJointGetRatio(_cpConstraints.front()));
887}
888
889void PhysicsJointGear::setRatio(float ratio)
890{

Callers 2

visitMethod · 0.45

Calls 2

cpGearJointGetRatioFunction · 0.85
frontMethod · 0.45

Tested by

no test coverage detected