AddForce test

This commit is contained in:
Antoine Pilote
2023-07-17 02:46:44 -04:00
parent 6433518a25
commit 520867d3fe

View File

@@ -275,6 +275,8 @@ namespace Nuake
bodySettings.mUserData = rb->GetEntity().GetID();
// Create the actual rigid body
JPH::BodyID body = _JoltBodyInterface->CreateAndAddBody(bodySettings, JPH::EActivation::Activate); // Note that if we run out of bodies this can return nullptr
_JoltBodyInterface->AddForce(body, JPH::Vec3(10, 1, 0));
_registeredBodies.push_back((uint32_t)body.GetIndexAndSequenceNumber());
}