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

Cars are tipping over and twisting. Sketch of solution. Edited. #310

Closed
ghost opened this issue Sep 3, 2017 · 2 comments
Closed

Cars are tipping over and twisting. Sketch of solution. Edited. #310

ghost opened this issue Sep 3, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 3, 2017

Problem
Cars are tipping over and twisting.
Reason
The center of mass of vehicles is located in center of shape, (the biggest problem) at half the height of the car.
Solutions
The attribute of center of mass in bullet is stored in btTransform.

  1. We can manipulate it with function setOrigin(), but it has influence on physics. 👎
  2. Better Wrapping vehicle's shape in btCompoundShape. Easier and it also allows to characterize cars with one more attribute. Useful in future. 👍
    Useful code
    https://www.gamedev.net/forums/topic/641015-setting-up-a-vehicle/
    Just in case:
    https://web.archive.org/web/20170903192733/https://www.gamedev.net/forums/topic/641015-setting-up-a-vehicle/
@ghost ghost changed the title Cars are tipping over and twisting. Sketch of solution. Cars are tipping over and twisting. Sketch of solution. Edited. Sep 8, 2017
@ghost
Copy link
Author

ghost commented Sep 8, 2017

Unfortunately it isn't the guilty. :( it looks like something connected with suspension.

@ghost
Copy link
Author

ghost commented Mar 22, 2018

Succeed by #416.

@ghost ghost closed this as completed Mar 22, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant