Collision problem when actor can't rotate

oripessach

  • *
  • Posts: 259
I have a platformer scene, where the floor is made up of tiles, and it has a gap that's three tiles wide. I place an actor in that gap - I have actors for platforms and for floor segments that the player can destroy.

The player actor is set up so it can't rotate ("Can Rotate?" in the physics tab is set to "No.")

When the actor reaches the gap in the floor and hits the object I place there, it stops as if it hit a wall. The collision boxes are aligned perfectly, and if I lower the object by one pixel, the actor can walk onto it, but not off it. So something is obviously off with the collision detection.

If I set the actor so that it is able to rotate, I don't get this problem. But I don't need the actor to rotate.

What's going on here, and how can I fix this?

Thanks,

Ori

LIBERADO

  • *
  • Posts: 2716
Use a polygon to create in your actor a collision shape in this way:

I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

oripessach

  • *
  • Posts: 259
Wow! Really? I'll try that...

oripessach

  • *
  • Posts: 259
This worked - thanks!