MCPcopy Create free account
hub / github.com/axmolengine/axmol / construct

Method construct

core/physics/PhysicsJoint.cpp:256–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256PhysicsJointFixed* PhysicsJointFixed::construct(PhysicsBody* a, PhysicsBody* b, const Vec2& anchr)
257{
258 auto joint = new PhysicsJointFixed();
259
260 if (joint->init(a, b))
261 {
262 joint->_anchr = anchr;
263 return joint;
264 }
265
266 AX_SAFE_DELETE(joint);
267 return nullptr;
268}
269
270bool PhysicsJointFixed::createConstraints()
271{

Callers

nothing calls this directly

Calls 4

local2WorldMethod · 0.80
constructFunction · 0.50
initMethod · 0.45
getDistanceMethod · 0.45

Tested by

no test coverage detected