An idle thought ... portraying 3D environment in 2d

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
togFox
Party member
Posts: 770
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

An idle thought ... portraying 3D environment in 2d

Post by togFox »

Was thinking how I would make a NASCAR game where cars drive around a track looking top down. It would use the physics engine to provide motion and believable steering.

Thought bubble - how would I factor the banking of corners (think oval tracks) in a top down 2D universe in such a way that the banking aided/assisted the car turning into the corner (or more correctly, not flying off the corner).

The banking can't be seen when looking down, strictly speaking, but there are forces at play that need to be replicated. Assuming corners were regular and consistent for simplicity (not ovals) then how would you approach that?
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
pgimeno
Party member
Posts: 3544
Joined: Sun Oct 18, 2015 2:58 pm

Re: An idle thought ... portraying 3D environment in 2d

Post by pgimeno »

Banking exerts a force towards the centre of the curve, so you can apply such a force to emulate it.
Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests