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 »

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: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Tangential drive ? Also TankDemo in V2

Post 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.
Phende
Posts: 4
Joined: Sat Aug 31, 2019 9:54 am

Re: Tangential drive ? Also TankDemo in V2

Post 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 :-)
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Tangential drive ? Also TankDemo in V2

Post 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.
Phende
Posts: 4
Joined: Sat Aug 31, 2019 9:54 am

Re: Tangential drive ? Also TankDemo in V2

Post 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 :-)
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Tangential drive ? Also TankDemo in V2

Post by Norbo »

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

Re: Tangential drive ? Also TankDemo in V2

Post by Phende »

Amazing, as always. Thanks again.
Post Reply