Collision not working with wrapped actors

Hi everyone, My scene is x wrapped so the platforms appear on the other side of the screen if they go over an edge.

My actor is set up to collide with these platforms but the collision is only working with the largest part of the wrapped platform. My actor just goes straight through the smallest area of the wrap.

Here is a picture so display my problem.

collision problem

Is there a fix to this problem? Thanks

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880
    The 'short' side is really just an illusion. The actual actor only exists on the 'long' side and only reacts to things on its long side. (Think of the short side as a mirror image. It looks real, but its not really there.)

    The way around this is to do your own wrapping. So, if you have something moving to the left, when it gets off scene, reset its X position to the far right side of the scene. Use a change attribute behavior to reset its x position.
  • LooseMooseLooseMoose Member Posts: 224
    Thanks for your reply. In my game you have to navigate between the gaps between the platforms, so using my own wrapping wouldn't achieve this unfortunately.

    I guess my only option is disable x wrapping and duplicate all of my platforms and have y constrained to its partner with a fixed x distance between the 2. This will really push the performance :-S
Sign In or Register to comment.