Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fps example: collision detection in substeps #21925

Merged
merged 2 commits into from
Jun 2, 2021
Merged

Conversation

felixmariotto
Copy link
Contributor

@felixmariotto felixmariotto commented May 31, 2021

Related issue: Fixed #21921.

In the fps example, objects could traverse the walls when running at a low framerate ( eg: 30fps ).

This PR updates the example to run the collision detection un smaller substeps, which greatly reduce the risk of an object traversing too quickly.

As @Mugen87 pointed out, this is hacky and a cleaner solution could be found.

@Mugen87 Mugen87 added this to the r130 milestone Jun 1, 2021
@mrdoob mrdoob merged commit d45c0e1 into mrdoob:dev Jun 2, 2021
@mrdoob
Copy link
Owner

mrdoob commented Jun 2, 2021

Thanks!

@mrdoob
Copy link
Owner

mrdoob commented Jun 2, 2021

/fyi @supereggbert

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FPS Example (Capsule and Octree)
3 participants