How do I manage collisions on an isometric car

0 favourites
  • 3 posts
From the Asset Store
100 high-quality cars / boats. This asset is perfect for a top-down game.
  • I have a Pre-Render car with isometric view that have 96 rotation frames.

    Do the collision boxes for the 96 frames will be a pain, so how i can do in an easy way?

    I can have a isometric shadow/detector in 96 frames for the collision, but the same problem i will have to "guess poligon box" one by one for each frame :S .

    Any idea?

  • Try creating a invisible object to detect the collision instead of the car and as you rotate the car you also rotate the invisible object.

    The collision box won't be as sharp as setting the collision points on each of the 96 frames, but at least it will rotate along with the car which is more accurate then setting a fix bound box to all frames.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I already tried this, but if you rotate will make in some directions the collision will be wrong due the car perspective.

    I mean the collision box have to change in each frame to get perfect to the car. Example:

    So, to get that or something aprox to this i will have to do some kind of maths to do a collision box in a sprite and after that: Every tick > Rotate + set X width/height to transform

    And i don't know if this will works, still i have to play with that idea.

    This will be more easy if Construct will also have some "guess polygon box for each frame" so with the shadow pre-render i apply that and in a second i have what i need.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)