Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on January 24, 2015, 10:55:38 PM

Title: Is Kinematic sends object into the air.
Post by: coffeeANDsoda on January 24, 2015, 10:55:38 PM
Heres the problem I having with the game objects rigidbody for my game.  When I have a Is Kinematic action to turn off in another state on my object during runtime or gameplay, it's like the object launches into the air like a rocket. What does this happen when I want a object to drop to the ground?

Title: Re: Is Kinematic sends object into the air.
Post by: coffeeANDsoda on January 26, 2015, 05:40:31 PM
I'm still stuck on this, could someone help me with this problem?
Title: Re: Is Kinematic sends object into the air.
Post by: Sly on January 26, 2015, 07:50:52 PM
You should probably need to play with the rigidbody. Try something more heavy, you will see if it change something.

Can you attach a picture of your gameObject?
Title: Re: Is Kinematic sends object into the air.
Post by: coffeeANDsoda on January 26, 2015, 10:03:55 PM
You should probably need to play with the rigidbody. Try something more heavy, you will see if it change something.

Can you attach a picture of your gameObject?

This is what I have when I try to drop it in the project.

(https://db.tt/lWan1mMu)
Title: Re: Is Kinematic sends object into the air.
Post by: nhe1 on January 28, 2015, 02:13:21 AM
turning on IsKinematic to an object attached with a rigidbody makes that object be not affected by other physics objects in the scene.

e.g for moving/dynamic objects that has physics you should turn off iskinematic and for static objects eg platforms,walls you should turn it on
Title: Re: Is Kinematic sends object into the air.
Post by: coffeeANDsoda on January 28, 2015, 02:20:40 AM
When I turn Is Kinematic off by checking off Is Kinematic box from the Set Is Kinematic in another state I get the same results.

So when I press a key after Move Towards action in the second state(given the FSM has the first state with a trigger event) and then having to going into the next state with the kinematic action, I get the same results like in the pic I posted above.
Title: Re: Is Kinematic sends object into the air.
Post by: rik on January 28, 2015, 04:56:42 AM
simple thing you need to know about physics is you need to set is kinamatic only you if the game object should not respond the physics
say if you need your object to go in to the air and come back again you need put force in a direction generally y
if the game object need to come back to the normal position then set it 0.
 
Title: Re: Is Kinematic sends object into the air.
Post by: coffeeANDsoda on January 28, 2015, 05:57:41 AM
So would you say add force in the same state as the kinematic action would solve the problem if the Y axis in that action is set to 0? Since the objective is for me to make a object just drop to the ground that's why I ask. 
Title: Re: Is Kinematic sends object into the air.
Post by: rik on January 29, 2015, 04:08:29 AM
this is easy action i am attaching scene.
check