Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

DynamicPawn can get stuck underground if flying with speed multiplier #1419

Open
j9liu opened this issue May 10, 2024 · 1 comment
Open

DynamicPawn can get stuck underground if flying with speed multiplier #1419

j9liu opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@j9liu
Copy link
Contributor

j9liu commented May 10, 2024

This can be reproduced in any Cesium level with a DynamicPawn. (I used 04_MAIN_CesiumSubLevels)

  1. Fly out far away, enough that you can almost see the entire globe
  2. Start flying back towards the globe, but speed up the zoom using the scroll wheel.

When you maintain that speed, the camera will phase through the ground, and because there's no terrain underneath to raycast, it's really hard to get back above ground again.

This seems to happen even with moderate speed-up, like "half a scroll wheel" of input.

@j9liu j9liu added the bug Something isn't working label May 10, 2024
@csciguy8
Copy link
Contributor

I wonder if this can be solved by just turning off raycasts if higher than a certain threshold?

For example, at 100km above the earth, just use our height above the ellipsoid. A raycast isn't going to hit anything that's going to change this distance in a significant way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants