Skip to content

bug: addForce() is framerate dependent #557

Answered by dragoncoder047
themerk asked this question in Q&A
Discussion options

You must be logged in to vote

It should be onFixedUpdate()... not sure why it isn't coming up in the documentation, the function exists...

onFixedUpdate(() => {
    // Force downwards
    x.addForce(DOWN.scale(200));
});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@themerk
Comment options

@dragoncoder047
Comment options

Answer selected by lajbel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #554 on December 06, 2024 12:21.