Skip to content

Improved how to apply physics forces#1568

Merged
jankrassnigg merged 2 commits into
devfrom
user/jk/force-api
May 20, 2025
Merged

Improved how to apply physics forces#1568
jankrassnigg merged 2 commits into
devfrom
user/jk/force-api

Conversation

@jankrassnigg
Copy link
Copy Markdown
Member

Replaced the message based API to apply forces with one where you register forces for a given duration. This way the engine can automatically apply forces every frame, even when there are no game updates for a component. This makes forces framerate independent, and it's also possible to update objects less frequently.

@jankrassnigg jankrassnigg added this to the Next Release milestone May 19, 2025
@jankrassnigg jankrassnigg added the improvement Improves an existing feature label May 19, 2025
@jankrassnigg jankrassnigg linked an issue May 19, 2025 that may be closed by this pull request
Replaced the message based API to apply forces with one where you register forces for a given duration.
This way the engine can automatically apply forces every frame, even when there are no game updates for a component.
This makes forces framerate independent, and it's also possible to update objects less frequently.
@jankrassnigg jankrassnigg merged commit 0f0acd4 into dev May 20, 2025
10 checks passed
@jankrassnigg jankrassnigg deleted the user/jk/force-api branch May 20, 2025 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing feature release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Jolt: AddForce / AddImpulse accumulate at high framerates

1 participant