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

Method prismatic

Source/Physics/JointDef.cpp:96–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96JointDef* JointDef::prismatic(
97 bool collision,
98 String bodyA,
99 String bodyB,
100 const Vec2& worldPos,
101 float axisAngle,
102 float lowerTranslation,
103 float upperTranslation,
104 float maxMotorForce,
105 float motorSpeed) {
106 PrismaticDef* def = new PrismaticDef();
107 def->collision = collision;
108 def->bodyA = bodyA.toString();
109 def->bodyB = bodyB.toString();
110 def->worldPos = worldPos;
111 def->axisAngle = axisAngle;
112 def->lowerTranslation = lowerTranslation;
113 def->upperTranslation = upperTranslation;
114 def->maxMotorForce = maxMotorForce;
115 def->motorSpeed = motorSpeed;
116 def->autorelease();
117 return def;
118}
119
120JointDef* JointDef::pulley(
121 bool collision,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected