Side view carlike physics

This forum is currently in read-only mode.
From the Asset Store
94 Inside buildings views - Isometric view - PNG transparent - 2048x2048
  • Hey, everybody. I have had this little project in mind that's basically a little agile tank thing going around on bumpy terrain and fighting things. An early prototype looks like this:

    <img src="http://i244.photobucket.com/albums/gg36/some9000/PrototypeDX9runtime.png">

    And you can get the CAP here: http://dl.dropbox.com/u/1328856/ProtoJack.cap

    Now here's the question: I'd like it to behave more like a vehicle, with suspension, etc. Currently using physics it is somewhere on its way there, but not quite. Now this topic had a discussion with examples, but unfortunately the file host is dead and no-one seems to have the caps. Has anyone got any tips (preferably explained in an idiot proof way) on how to implement suspension for the little beast?

    Cheers.

    Edit: Almost forgot - if you do grab the cap holding space will spawn rocks to have some physics interaction fun while pressing up will blast those rocks around to clear the space up a little.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You might give the custom movement behavior a try.

    I can tell you one thing. The triangles wont give proper collision detection at negative values.

  • Instead of using a hinge try using the spring action - i think it needs to be applied every frame. I cant really remember what values would be good, but just give it a try.

  • Instead of using a hinge try using the spring action - i think it needs to be applied every frame. I cant really remember what values would be good, but just give it a try.

    Every frame, d'oh! Thanks, David. I read about it, added one at the start of the layout and nothing happened. Now by using it always and adding a force between the wheels to sort-of hold them together the result is much better (also the cap is updated at the link above):

    <img src="http://i244.photobucket.com/albums/gg36/some9000/PrototypeDX9runtime-1.png">

    Thing is, there seems to be no way to point the forces at image points, thus the "base" just hangs there and spins around since it's only held by something right in the middle.

    One idea I had was to disable rotations for it and just do a "Always - Base angle = Angle between the wheels", but that seems sort-of messy, is there a nicer, physics based way?

    You might give the custom movement behavior a try.

    I can tell you one thing. The triangles wont give proper collision detection at negative values.

    Not sure if custom movement can supply all the wigglyness that the physics one can. But if this doesn't work out I'll give it a try. Speaking of triangles - had that problem, but placing the image point right in the middle solved it. Besides, these are just test graphics anyway.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)