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

Method spring

Source/Physics/JointDef.cpp:74–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74JointDef* JointDef::spring(
75 bool collision,
76 String bodyA,
77 String bodyB,
78 const Vec2& linearOffset,
79 float angularOffset,
80 float maxForce,
81 float maxTorque,
82 float correctionFactor) {
83 SpringDef* def = new SpringDef();
84 def->collision = collision;
85 def->bodyA = bodyA.toString();
86 def->bodyB = bodyB.toString();
87 def->linearOffset = linearOffset;
88 def->angularOffset = angularOffset;
89 def->maxForce = maxForce;
90 def->maxTorque = maxTorque;
91 def->correctionFactor = correctionFactor;
92 def->autorelease();
93 return def;
94}
95
96JointDef* JointDef::prismatic(
97 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected