Faster Gravity #3362
Faster Gravity
#3362
Replies: 1 comment
-
|
Settings fixedUpdateFps to 60 was enough for the physics to be fine grained enough to catch objects moving this fast, thanks Erik on the discord. Also here is an example of using matterjs with excalibur: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was setting up a simple example game to play around with Excalibur, and I wanted to make the gravity faster, so I cranked the gravity vector up until it was at a speed I liked, but now my player is clipping through thin platforms, see the code example below. I tried to enable the continuous and fast moving checks but those did not seem to help. I also played around with different substep values but that did not seem to work either(And also led to some jittery physics). What is the proper way to make this work? Is my games width and height to large, I chose what seemed reasonable values for these. Or should I be setting different values for these and thinking about viewport/resolution and such?
Additionally I was wondering if anyone had tried using a completely separate physics engine with Excalibur, something like Box2d which supports swept AABB.
Beta Was this translation helpful? Give feedback.
All reactions