playMaker

Author Topic: Is Kinematic sends object into the air.  (Read 3073 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Is Kinematic sends object into the air.
« 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?


coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Is Kinematic sends object into the air.
« Reply #1 on: January 26, 2015, 05:40:31 PM »
I'm still stuck on this, could someone help me with this problem?

Sly

  • Full Member
  • ***
  • Posts: 123
Re: Is Kinematic sends object into the air.
« Reply #2 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?

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Is Kinematic sends object into the air.
« Reply #3 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.


nhe1

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Is Kinematic sends object into the air.
« Reply #4 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

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Is Kinematic sends object into the air.
« Reply #5 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.
« Last Edit: January 28, 2015, 05:53:45 AM by coffeeANDsoda »

rik

  • Full Member
  • ***
  • Posts: 246
Re: Is Kinematic sends object into the air.
« Reply #6 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.
 

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Is Kinematic sends object into the air.
« Reply #7 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. 
« Last Edit: January 28, 2015, 06:01:36 AM by coffeeANDsoda »

rik

  • Full Member
  • ***
  • Posts: 246
Re: Is Kinematic sends object into the air.
« Reply #8 on: January 29, 2015, 04:08:29 AM »
this is easy action i am attaching scene.
check