Move along Custom Collision Actor?

If I create an actor with a custom collision shape like the letter S, can I have another actor follow that "S" path?

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    Do you mean around the permitter of the S shape, or along the 'spine of the S' ?

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    Along the spine

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Socks along the spine

  • SocksSocks London, UK.Member Posts: 12,822

    @GreenfroggGames said:
    @Socks along the spine

    There is noting inherent in custom collision shapes that lends itself to guiding an actor around or through the defined shape (any more than the standard circle or rectangular collision shapes allows an actor to move based on their shape).

    You can, of course, get an actor to follow an 'S' shaped path, but it wouldn't be related in any way to the custom collision function.

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Socks Ok. I want actors to follow a lot of different paths and thought it would be easy to just place different collision shape actors on the scene. What would be the best way to have actors follow "S" and "U" shaped tracks?

  • SocksSocks London, UK.Member Posts: 12,822

    @GreenfroggGames said:
    @Socks Ok. I want actors to follow a lot of different paths and thought it would be easy to just place different collision shape actors on the scene. What would be the best way to have actors follow "S" and "U" shaped tracks?

    For 'S' I'd have the actor move in a circle from 0° to 270 (CCW) - at 270° change the centre point of the circle to: its current Y postion-Ø, then continue CW from 90 to -180°

    Same sort of deal with a 'U' shape, head downwards for a specified distance, then follow an arc from 0° to -180, and head upwards to your Y starting point.

Sign In or Register to comment.