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

Arcade racing game physics #314

Open
ghost opened this issue Nov 18, 2016 · 5 comments
Open

Arcade racing game physics #314

ghost opened this issue Nov 18, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 18, 2016

I'm seeking for advice for making arcade-style racing game. I am aiming for smooth and easy car controls. I've tried using raycastVehicle and rigidVehicle, but controling it feels wrong. What if vehicle's body would be just one simple cube and it would "slide" on the terrain. Is there any way to make cube sliding instead of rolling on terrain? Or maybe there's better solution?

@otse
Copy link

otse commented Nov 18, 2016

Maybe we can together work on new cannon.js demo's, because I'm also with a
lack of exemplified behavior of the API and its uses (quite limited).

Your question - I don't think you can slide a cube over a nonflat mesh,, no
matter its contact-material. I hope people will respond with some good
suggestions and cannon.js solutions, because some people here will
ironically tell you: use bullet if you want this.

Op vr 18 nov. 2016 om 15:02 schreef Gugis notifications@github.com

I'm seeking for advice for making arcade-style racing game. I am aiming
for smooth and easy car controls. I've tried using raycastVehicle and
rigidVehicle, but controling it feels wrong. What if vehicle's body would
be just one simple cube and it would "slide" on the terrain. Is there any
way to make cube sliding instead of rolling on terrain? Or maybe there's
better solution?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#314, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABEkImSlcWE8dRdb3_S57WvjthGvSQzjks5q_a_1gaJpZM4K2gpY
.

Sent from Gmail Mobile

@ghost
Copy link
Author

ghost commented Nov 18, 2016

Hey @otse, thanks for your reply. Do you think it's possible only with rigid bodies?

Edit: I found this video https://www.youtube.com/watch?v=LG1CtlFRmpU and it looks really nice. I think I will try to implement this method with cannon.js

One more edit: I'f i'm correct the same method is implemented in this demo?

@otse
Copy link

otse commented Nov 18, 2016

You want to ask yourself if you're pushing technology by making sliding
cubes for cars. Just kidding mate, not here to judge.

I'd say it's hardly possible, however, I've not much experience.

On 18 November 2016 at 18:27, Gugis notifications@github.com wrote:

So it's possible only with rigid bodies?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#314 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABEkImcK5RdSw3FINUXFgZybazvrRk-Vks5q_d_tgaJpZM4K2gpY
.

@ghost
Copy link
Author

ghost commented Nov 18, 2016

@otse well video I posted above showed what I have in mind. Except cars are hovering :)

@GuillaumeBouchetEpitech

is this issue still open or did you find the demo enough as it is?

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

2 participants