heres my code I simply want the dirt bike to collide with the trail but It is not and I am getting angry, whats up?
heres my code I simply want the dirt bike to collide with the trail but It is not and I am getting angry, whats up?
Instead of using
object:setReferencePoint( referencePoint )
try this a value of 0 sets the objects refrence point to the left and a value of 1 would set it to the right. 0.5 would center it.
object.anchorX = 0-- left object.anchorY = 1-- right
If none of that works the only thing i can think of is making sure isSensor is not set for your physics objects.
EDIT i just realized your not setting the dirtbike to dynamic and at least one object must be dynamic for collision to occur.
heres my code I simply want the dirt bike to collide with the trail but It is not and I am getting angry, whats up?
Instead of using
object:setReferencePoint( referencePoint )
try this a value of 0 sets the objects refrence point to the left and a value of 1 would set it to the right. 0.5 would center it.
object.anchorX = 0-- left object.anchorY = 1-- right
If none of that works the only thing i can think of is making sure isSensor is not set for your physics objects.
EDIT i just realized your not setting the dirtbike to dynamic and at least one object must be dynamic for collision to occur.