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

Method friction

Source/Physics/JointDef.cpp:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42JointDef* JointDef::friction(
43 bool collision,
44 String bodyA,
45 String bodyB,
46 const Vec2& worldPos,
47 float maxForce,
48 float maxTorque) {
49 FrictionDef* def = new FrictionDef();
50 def->collision = collision;
51 def->bodyA = bodyA.toString();
52 def->bodyB = bodyB.toString();
53 def->worldPos = worldPos;
54 def->maxForce = maxForce;
55 def->maxTorque = maxTorque;
56 def->autorelease();
57 return def;
58}
59
60JointDef* JointDef::gear(
61 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected