Page 1 of 1

Tangential drive ? Also TankDemo in V2

Posted: Sat Aug 31, 2019 10:30 am
by Phende
Being new here, hi everybody and thanks @Norbo for such an impressive piece of work.
I am a real noob at game physics, so my questions here might reflect that. Sorry :-)

While evaluating how BepuPhysics V2 capabilities could map to my project needs, I was looking at how to implement a flat surface that would exhibit traction using constraints. Something acting like the bottom side of a tank tread or the top of a conveyor. Or something that could glide in a constrained direction. I have tried most kinds of motors and servos without success, so I am now thinking that cannot be done with constraints only. Would anybody have a suggestion ?

Also, I have been trying to port the TankDemo from V1 to V2 and failed miserably so far. Did anybody managed to do that already ?

Anticipated thanks...

Re: Tangential drive ? Also TankDemo in V2

Posted: Sun Sep 01, 2019 5:31 am
by Norbo
The LinearAxisMotor could be used to make something like a tank tread, although it would be a little tedious to control in response to collisions and wouldn't tend to look as good as something more closely simulating the tank tread- like a bunch of wheels in v1's tank demo.

I'll set up a v2 version of the tank demo.

Re: Tangential drive ? Also TankDemo in V2

Posted: Sun Sep 01, 2019 7:56 pm
by Phende
Oh, thanks Norbo !
I could not get LinearAxisMotor to do what I want it to do, but now you confirmed it was the rigtht way I will keep trying.

And thanks again for the upcoming demo :-)

Re: Tangential drive ? Also TankDemo in V2

Posted: Wed Sep 04, 2019 5:28 am
by Norbo
Latest master now has a first pass tank demo. Going to fancy it up a bit more later, but the constraints and such are all in there.

Re: Tangential drive ? Also TankDemo in V2

Posted: Wed Sep 04, 2019 1:03 pm
by Phende
Thanks Norbo, I'll look at your magic as soon as I can. You are the best !

(although I don't understand why you always multiply everything by 0.5 instead of dividing by 2 :-)

Re: Tangential drive ? Also TankDemo in V2

Posted: Thu Sep 05, 2019 1:19 am
by Norbo
slashes are evil

Re: Tangential drive ? Also TankDemo in V2

Posted: Sun Sep 08, 2019 6:59 pm
by Phende
Amazing, as always. Thanks again.