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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cheat codes #72

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add cheat codes #72

wants to merge 1 commit into from

Conversation

hazem3500
Copy link
Member

@hazem3500 hazem3500 commented Jun 6, 2021

Cheat Codes

SOBIG: scales the vehicle by a factor of 3
SONORMAL: scales the vehicle by a factor of 1
SOTINY: scales the vehicle by a factor of 0.25
LOWGRAVITY: changes the gravity on the y-axis with the value -5
NORMALGRAVITY: changes the gravity on the y-axis with the value -10

Issues

  • I tried applying the scale on the whole group in the Vehicle component but the physics wasn't working correctly
  • I am not sure what is the appropriate way to position the Wheel according to the new vehicle scale
  • Updating the gravity dynamically doesn't work (pending on: Feature request - changing gravity dynamically聽use-cannon#126)

It would be great if someone could give me some pointers on how to solve these issues 馃榿

@drcmda
Copy link
Member

drcmda commented Jun 6, 2021

you cant scale vehicle, the scales must go into the physics objects, not the outward geometric representation, which is controlled by cannon.

@hazem3500
Copy link
Member Author

So I'll need to pass something to useRaycastVehicle?
Is there a section in connon-es or use-cannon docs where it can help me figure this out?

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

Successfully merging this pull request may close these issues.

None yet

2 participants