Turning off physics collisions

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
TheFriendlyFoe
Prole
Posts: 7
Joined: Fri Mar 18, 2022 11:42 am

Turning off physics collisions

Post by TheFriendlyFoe »

I want to make my track collide with my car, but only in the way I choose to. I'm using the isTouching functions to check when I hit the edge of the track so I can then put it at the start of the track. The current problem is the track moves slightly every time I crash into it because the physics engine counts it as colliding. I have set the track to dynamic so it can move around the screen instead of my car. I tried to mask collisions between the car and track but then it won't even check for collisions in the first place. Is there a way to have the game check for collisions but not do anything with them?
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

Re: Turning off physics collisions

Post by darkfrei »

Some solutions:
1. Use your own physics that you can understand.
2. Don't move the track, but car and camera.
3. Move your track (and car) to the default position.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests