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

Method AddForce

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

Source from the content-addressed store, hash-verified

247}
248
249void RigidBody::AddForce(const Vector3& force, ForceMode mode) const
250{
251 if (_actor && GetEnableSimulation())
252 PhysicsBackend::AddRigidDynamicActorForce(_actor, force, mode);
253}
254
255void RigidBody::AddForceAtPosition(const Vector3& force, const Vector3& position, ForceMode mode) const
256{

Callers

nothing calls this directly

Calls 1

GetEnableSimulationFunction · 0.85

Tested by

no test coverage detected