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

Method wheel

Source/Physics/JointDef.cpp:200–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200JointDef* JointDef::wheel(
201 bool collision,
202 String bodyA,
203 String bodyB,
204 const Vec2& worldPos,
205 float axisAngle,
206 float maxMotorTorque,
207 float motorSpeed,
208 float frequency,
209 float damping) {
210 WheelDef* def = new WheelDef();
211 def->collision = collision;
212 def->bodyA = bodyA.toString();
213 def->bodyB = bodyB.toString();
214 def->worldPos = worldPos;
215 def->axisAngle = axisAngle;
216 def->maxMotorTorque = maxMotorTorque;
217 def->motorSpeed = motorSpeed;
218 def->frequency = frequency;
219 def->damping = damping;
220 def->autorelease();
221 return def;
222}
223
224Vec2 JointDef::r(const Vec2& target) {
225 if (angle) {

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected