Seeking Assistance with Car Physics for 2D/3D Game Similar to "Drive Ahead!"

Hello fellow developers,

I’m currently working on a project to create a 2D car game inspired by “Drive Ahead!” and am seeking guidance on implementing realistic car physics(Drive Ahead physics) within Roblox Studio. Specifically, I’m interested in:

  • Vehicle Movement: Techniques for simulating car acceleration, deceleration, left and right movement (2d), and handling .
  • Collision Detection: Methods to accurately detect and respond to collisions between vehicles and the environment.
  • Suspension Systems: Approaches to model suspension dynamics for realistic vehicle behavior.

I’ve explored existing resources on the Developer Forum, such as How can I make a car, but would appreciate more detailed insights or examples tailored to my game’s requirements.

Any advice, tutorials, or code snippets would be greatly appreciated.


Best Replays of the Week! - Episode 175! :fire:

Thank you in advance for your assistance!

3 Likes

Depend if you want to create this using ui or just setting the camera’s position to look down on the car. If you make the camera look down on the car you can simply use linear velocity and tween the force to simulate acceleration, then you can use the .hit function to determine collisions. However if you want to achieve this with GUIs you should use runService.heartbeat and increase the GUIs z value.

Thanks for the suggestion! However, I’m working on a game similar to Drive Ahead, and I want it to be heavily physics-based. Since I’m not using GUIs and aiming for realistic interactions, I’ll rely more on constraints, body movers, and physics properties rather than linear velocity or Tweening for the car’s behavior. Any tips on implementing realistic physics for collisions and dynamic interactions in a 2D environment would be greatly appreciated!