Jump to content

Driving car like a GTA-2


tihoho
 Share

Recommended Posts

Whether there are fresh examples for Phaser 3. It is interesting to see the implementation of physics and realistic control of the machine in the style of GTA-2. I saw a couple of examples for Phaser 2, and they are something too complicated.

How rotation car by ellipsis? How accelerate? How to ride back with a realistic turn?

22-2.jpg

Edited by tihoho
Fhaser → Phaser
Link to comment
Share on other sites

46 minutes ago, samid737 said:

https://codepen.io/Samid737/pen/GdVZeX

The physics model is highly simplified and it won't decelerate like in GTA-2, you will need to add in drag to achieve this.

Samid, thanks for the example, but it doesn't look like the physics of the machine. not too realistic turns. so I found it: it’s more like the truth, only for the phaser 2, and it seems to me that on 3 it is easier to write.

https://simple-car-game.herokuapp.com/

https://codeburst.io/how-to-make-a-simple-multiplayer-online-car-game-with-javascript-89d47908f995

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...