Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mulbin on June 13, 2016, 11:55:49 AM
-
I'm trying to set up a very basic spherical gravity where a game object is constantly pulled towards another. I can't use the "circular gravity force" asset as it is not constant (it gets weaker the further you get from the origin).
Is there any way to set a force on a rigidbody object that pulls it towards another object? I'd like to specify the target and the amount of force in units. It must be a physics force as I will be countering it with another directional force to create an orbit.
-
Have you tried https://snipt.net/dudebxl/setgameobjectascenterofgravity/
I posted a gif in this forum but i am on ipad so u need to search for it...
-
Great, I'll take a look!
-
I tried the script but I can't apply it to a game object, I just get "needs to derive from a monobehaviour"
-
Did you download it from ecosystem? It is an action...