Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: misterjuly on June 21, 2021, 02:20:54 PM

Title: Randomly Spawning stuff
Post by: misterjuly on June 21, 2021, 02:20:54 PM
Hello,

I have randomly spawning 2d planets (circles essentially) and I need to get other stuff to spawn on the surface of the planets. I would like the rotation to match with the planet's ground. I would also like eventually to have some planets spawn in the objects and some not. How would I go about doing this? Thanks!

John Bassi
Title: Re: Randomly Spawning stuff
Post by: djaydino on June 21, 2021, 07:44:27 PM
Hi.
Maybe you can get the angle from the center of the planet and set the rotation based on that