Tangential drive ? Also TankDemo in V2

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Phende
Posts: 4
Joined: Sat Aug 31, 2019 9:54 am

Tangential drive ? Also TankDemo in V2

Post by Phende » Sat Aug 31, 2019 10:30 am

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...

Norbo
Site Admin
Posts: 4760
Joined: Tue Jul 04, 2006 4:45 am

Re: Tangential drive ? Also TankDemo in V2

Post by Norbo » Sun Sep 01, 2019 5:31 am

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.

Phende
Posts: 4
Joined: Sat Aug 31, 2019 9:54 am

Re: Tangential drive ? Also TankDemo in V2

Post by Phende » Sun Sep 01, 2019 7:56 pm

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 :-)

Norbo
Site Admin
Posts: 4760
Joined: Tue Jul 04, 2006 4:45 am

Re: Tangential drive ? Also TankDemo in V2

Post by Norbo » Wed Sep 04, 2019 5:28 am

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.

Phende
Posts: 4
Joined: Sat Aug 31, 2019 9:54 am

Re: Tangential drive ? Also TankDemo in V2

Post by Phende » Wed Sep 04, 2019 1:03 pm

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 :-)

Norbo
Site Admin
Posts: 4760
Joined: Tue Jul 04, 2006 4:45 am

Re: Tangential drive ? Also TankDemo in V2

Post by Norbo » Thu Sep 05, 2019 1:19 am

slashes are evil

Phende
Posts: 4
Joined: Sat Aug 31, 2019 9:54 am

Re: Tangential drive ? Also TankDemo in V2

Post by Phende » Sun Sep 08, 2019 6:59 pm

Amazing, as always. Thanks again.

Post Reply