MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddTorque

Method AddTorque

Source/Engine/Physics/Actors/RigidBody.cpp:266–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void RigidBody::AddTorque(const Vector3& torque, ForceMode mode) const
267{
268 if (_actor && GetEnableSimulation())
269 PhysicsBackend::AddRigidDynamicActorTorque(_actor, torque, mode);
270}
271
272void RigidBody::AddRelativeTorque(const Vector3& torque, ForceMode mode) const
273{

Callers

nothing calls this directly

Calls 1

GetEnableSimulationFunction · 0.85

Tested by

no test coverage detected