fix: fixed framerate for physics. might make it a little more stable

This commit is contained in:
maelstrom 2025-02-25 09:28:31 +01:00
parent a346b1d9a8
commit e082428314

View file

@ -73,7 +73,7 @@ void syncPartPhysics(std::shared_ptr<Part> part) {
void physicsStep(float deltaTime) {
// Step the simulation a few steps
world->update(deltaTime / 2);
world->update(std::min(deltaTime / 2, (1/60.f)));
// Naive implementation. Parts are only considered so if they are just under Workspace
// TODO: Add list of tracked parts in workspace based on their ancestry using inWorkspace property of Instance