MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / gear

Method gear

Source/Physics/JointDef.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60JointDef* JointDef::gear(
61 bool collision,
62 String jointA,
63 String jointB,
64 float ratio) {
65 GearDef* def = new GearDef();
66 def->collision = collision;
67 def->jointA = jointA.toString();
68 def->jointB = jointB.toString();
69 def->ratio = ratio;
70 def->autorelease();
71 return def;
72}
73
74JointDef* JointDef::spring(
75 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected