Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ShazBang on April 29, 2016, 08:59:47 AM
-
Hey, I have a floating object and when I press a button I would like it to drop to the ground using physics so that it will bounce off of other objects.
Is there an action that would allow me to, when I get mouse down on the object, make it fall?
Thanks. ;)
-
Depends on how you are floating your object. Are you using physics?
-
I'm just using an iTween action that moves it along the X axis
-
Make sure your floating gameobject has a Rigidbody component attached to it and set 'Is Kinematic' to true (make sure checkbox is checked). When your button is pressed, use the action "Set Is Kinematic" inside Physics drop-down to enable gravity on the gameobject. It will fall using physics...
NOTE: The floating gameobject must have a collider to interact with other objects or it'll pass through everything and continue falling until oblivion...
-
Make sure your floating gameobject has a Rigidbody component attached to it and set 'Is Kinematic' to true (make sure checkbox is checked). When your button is pressed, use the action "Set Is Kinematic" inside Physics drop-down to enable gravity on the gameobject. It will fall using physics...
NOTE: The floating gameobject must have a collider to interact with other objects or it'll pass through everything and continue falling until oblivion...
Thanks so much man! :D
-
No problem, I enjoyed figuring it out; Learned something myself. Just edit the subject and append the [SOLVED] text at the end so others can check the solution...