Spawn irregular shaped actors with collision??

redmanredman Member Posts: 3
edited November -1 in Working with GS (Mac)
I have several actors that are irregular shapes (non square or circle) and I want to be able to collide with them so I created the non visible collidable actors and fit them around my irregular actors. Now, I want to randomly spawn these irregular shaped actors but how can I as it would have to spawn them with the invisible actors all lined up perfectly? Any ideas would be much appreciated!

Thanks

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    You could try using the shape actor to spawn the invisible actors relative to itself.

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • redmanredman Member Posts: 3
    thanks for your reply. Can you explain a little more. I'm not quite sure how to do that? how would it know where exactly to spawn the invisible actors in the exact location?
  • quantumsheepquantumsheep Member Posts: 8,188
    On your visible actor use the 'spawn' behaviour.

    Let's say it needs two invisible actors:

    Spawn invisible actor one at self position Y +10 (for example)
    Spawn invisible actor two at self position Y -10 (for example)

    The +10 and -10 figures are just there as examples - you'll have to work out where exactly they need to go, and also for the X axis if need be.

    Make your invisible actors visible so you can see where they fit in relation to the visible actor till you get it right.

    Hope that helps!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.