MCPcopy Create free account
hub / github.com/cinder/Cinder / Initialize

Method Initialize

blocks/Box2D/src/Box2D/Dynamics/Joints/b2FrictionJoint.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33// K = invI1 + invI2
34
35void b2FrictionJointDef::Initialize(b2Body* bA, b2Body* bB, const b2Vec2& anchor)
36{
37 bodyA = bA;
38 bodyB = bB;
39 localAnchorA = bodyA->GetLocalPoint(anchor);
40 localAnchorB = bodyB->GetLocalPoint(anchor);
41}
42
43b2FrictionJoint::b2FrictionJoint(const b2FrictionJointDef* def)
44: b2Joint(def)

Callers

nothing calls this directly

Calls 1

GetLocalPointMethod · 0.80

Tested by

no test coverage detected