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

Method distance

Source/Physics/JointDef.cpp:22–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 : angle(0) { }
21
22JointDef* JointDef::distance(
23 bool collision,
24 String bodyA,
25 String bodyB,
26 const Vec2& anchorA,
27 const Vec2& anchorB,
28 float frequency,
29 float damping) {
30 DistanceDef* def = new DistanceDef();
31 def->collision = collision;
32 def->bodyA = bodyA.toString();
33 def->bodyB = bodyB.toString();
34 def->anchorA = anchorA;
35 def->anchorB = anchorB;
36 def->frequency = frequency;
37 def->damping = damping;
38 def->autorelease();
39 return def;
40}
41
42JointDef* JointDef::friction(
43 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected