MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / applyImpulse

Method applyImpulse

examples/Tutorial/Tutorial.cpp:175–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 void applyImpulse(const b3Vector3& impulse, const b3Vector3& rel_pos)
176 {
177 m_linearVelocity += impulse * m_invMass;
178 b3Vector3 torqueImpulse = rel_pos.cross(impulse);
179 m_angularVelocity += m_invInertiaTensorWorld * torqueImpulse;
180 }
181
182 void integrateVelocity(double deltaTime)
183 {

Callers 2

resolveCollisionFunction · 0.45
glueCallbackMethod · 0.45

Calls 1

crossMethod · 0.45

Tested by

no test coverage detected