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

Method pulley

Source/Physics/JointDef.cpp:120–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120JointDef* JointDef::pulley(
121 bool collision,
122 String bodyA,
123 String bodyB,
124 const Vec2& anchorA,
125 const Vec2& anchorB,
126 const Vec2& groundAnchorA,
127 const Vec2& groundAnchorB,
128 float ratio) {
129 PulleyDef* def = new PulleyDef();
130 def->collision = collision;
131 def->bodyA = bodyA.toString();
132 def->bodyB = bodyB.toString();
133 def->anchorA = anchorA;
134 def->anchorB = anchorB;
135 def->groundAnchorA = groundAnchorA;
136 def->groundAnchorB = groundAnchorB;
137 def->ratio = ratio;
138 def->autorelease();
139 return def;
140}
141
142JointDef* JointDef::revolute(
143 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected