Collide: Bounce when colliding with actor of type [Planet]
Rule: When Actor overlaps or collides with actor of type [Planet] -- (nothing goes here) otherwise -- Accelerate Toward ---- >scene.Background.Planet.Position.X ---- ^scene.Background.Planet.Position.Y ---- Relative to: scene ---- Acceleration: 200
Yep, Accelerate Toward is much better as it's persistent - Move To / Interpolate behaviours both lose their way after colliding with the planet surface so ignore my suggestions !
Ya use accelerate toward to the planet's coordinates. In Gravity Assist I also changed the accelerate magnitude to g/r^2 to simulate more realistic motion (like orbiting) where g is a some constant (obtain through testing) and r is the distance between the actor and the planet.
Ya use accelerate toward to the planet's coordinates. In Gravity Assist I also changed the accelerate magnitude to g/r^2 to simulate more realistic motion (like orbiting) where g is a some constant (obtain through testing) and r is the distance between the actor and the planet.
Really cool, thanks! @Socks and @DenimShark! but i can't get it to look nice.. I want them to stop "wobbling" after a while, and also i wonder why gs is making the actors float one pixel over the ground some times?
Really cool, thanks! @Socks and @DenimShark! but i can't get it to look nice.. I want them to stop "wobbling" after a while, and also i wonder why gs is making the actors float one pixel over the ground some times?
Looks nice
I suspect the 1 pixel gap is a combination of GS's lack of AA and a less than perfectly flat angle.
For the wobbling you will probably have to play around with angular drag / friction / density (etc).
Comments
Example:
Collide: Bounce when colliding with actor of type [Planet]
Rule: When Actor overlaps or collides with actor of type [Planet]
-- (nothing goes here)
otherwise
-- Accelerate Toward
---- >scene.Background.Planet.Position.X
---- ^scene.Background.Planet.Position.Y
---- Relative to: scene
---- Acceleration: 200
@RThurman
Yep, Accelerate Toward is much better as it's persistent - Move To / Interpolate behaviours both lose their way after colliding with the planet surface so ignore my suggestions !
Demo attached in post below:
Radial gravity demo:
Templates: 2048 • Pinch Zoom • Easy Universal Build • Fruit Ninja Blade Effect • 4 Pics 1 Word • Offline Timer
but i can't get it to look nice.. I want them to stop "wobbling" after a while, and also i wonder why gs is making the actors float one pixel over the ground some times?
I suspect the 1 pixel gap is a combination of GS's lack of AA and a less than perfectly flat angle.
For the wobbling you will probably have to play around with angular drag / friction / density (etc).
Hahhaha gs is so much fun
cant seem to get rid of the wobbling tough.. working on it
Templates: 2048 • Pinch Zoom • Easy Universal Build • Fruit Ninja Blade Effect • 4 Pics 1 Word • Offline Timer