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

Method revolute

Source/Physics/JointDef.cpp:142–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142JointDef* JointDef::revolute(
143 bool collision,
144 String bodyA,
145 String bodyB,
146 const Vec2& worldPos,
147 float lowerAngle,
148 float upperAngle,
149 float maxMotorTorque,
150 float motorSpeed) {
151 RevoluteDef* def = new RevoluteDef();
152 def->collision = collision;
153 def->bodyA = bodyA.toString();
154 def->bodyB = bodyB.toString();
155 def->worldPos = worldPos;
156 def->lowerAngle = lowerAngle;
157 def->upperAngle = upperAngle;
158 def->maxMotorTorque = maxMotorTorque;
159 def->motorSpeed = motorSpeed;
160 def->autorelease();
161 return def;
162}
163
164JointDef* JointDef::rope(
165 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected