Move along Custom Collision Actor?
GreenfroggGames
Member Posts: 224
If I create an actor with a custom collision shape like the letter S, can I have another actor follow that "S" path?
Comments
Do you mean around the permitter of the S shape, or along the 'spine of the S' ?
Along the spine
@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.
@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.