Adding a collision to my Game -- help

So far for my school project I have this code
–Carz game–
local friction = 0.8
local gravity = .09
local speedX, speedY, prevX, prevY, lastTime, prevTime = 0, 0, 0, 0, 0, 0

–Create Car Image
local myCar = display.newImage(“car.png”)
ScreenW = display.contentWidth
ScreenH = display.contentHeight
myCar.x = ScreenW/2
myCar.y = ScreenH/2 – Centres the car in the middle of the screen.
myCar.y = ScreenH/2 – Centres the car in the middle of the screen.

–Add score
local points = 0
scoreText = display.newText("Score: " …points, 0, 20, arial, 30)
scoreText:setTextColor(0,0,0)
ScreenW = display.contentWidth
ScreenH = display.contentHeight
scoreText.x = ScreenW/2
scoreText.y = ScreenH-30 – Centres the score centre bottom
–Physics
local physics = require “physics”
physics.start()
physics.setGravity(0, 4.95) – 4.95 m/s
physics.setDrawMode(“normal”)

–Spawn Petrol 1
local Fuel = display.newImage(“Petrol.png”)
Fuel.x=math.random(0, 320)
Fuel.y=math.random(-2000, -1000)
physics.addBody(Fuel, dynamic,{friction=2})
I want to but am unsure on how to make a collision function between, “Fuel” and “myCar”
I want it so whenever “myCar” Collides with “Fuel” that the local points will increase by 20 points.
Can someone please help :slight_smile:
-Dan [import]uid: 223003 topic_id: 35660 reply_id: 335660[/import]