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

Stackoverflow #20

Closed
Werninator opened this issue Jul 7, 2014 · 0 comments
Closed

Stackoverflow #20

Werninator opened this issue Jul 7, 2014 · 0 comments

Comments

@Werninator
Copy link

Hi (whoops, I created it before writing something),

I'm using the (Non-Physics-)Demo as a base for the movement of my game on Unity 4.5. Thanks for that. But if I stay on the same spot for a few minutes, there's an error "stack overflow", the one ray is really long onto the ground and is stuck. Plus, the vertical velocity is stuck at -2,778.

I tried to look up why it is happening, looked generally at the vertical velocity - and it slowly stacks down because gravity is added constantly (gravity * Time.deltaTime). If you zoom in, you can also see the one raycast, when your player is grounded, jittering. It slowly begins to grow, when suddenly the stack overflow appears and unity can't follow up.

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

No branches or pull requests

1 participant