playMaker

Author Topic: how to make an object jump forward  (Read 2700 times)

Splankton

  • Sr. Member
  • ****
  • Posts: 268
how to make an object jump forward
« on: November 08, 2013, 02:29:11 PM »
What is the best way to move an object forward and up, to simulate a jump?
The object has a rigidbody, so I've tried using add force, but it doesn't move it at all (I added y=5, x=5 into the fields)
Is there something else to check in add force, or should I use some other action?

uberwolfe

  • Junior Playmaker
  • **
  • Posts: 59
Re: how to make an object jump forward
« Reply #1 on: November 09, 2013, 06:36:27 AM »
Have you tried adding more force than 5?

The force needed will depend on the mass of your rigidbody

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Re: how to make an object jump forward
« Reply #2 on: November 09, 2013, 03:00:41 PM »
Have you tried adding more force than 5?

The force needed will depend on the mass of your rigidbody

The mass is set to 1 and I've tried values more than 5 so I don't know why it isn't moving.
So I'm going to use the animation editor and move the z axis that way. It'll give me more control over using add force, although may look less natural :-\

uberwolfe

  • Junior Playmaker
  • **
  • Posts: 59
Re: how to make an object jump forward
« Reply #3 on: November 09, 2013, 07:49:44 PM »
Are you sure you're adding enough force, and adding the force locally?

I just tested and can make a cube with mass of 1 jump forward nicely by adding 500 and 200 to Y and Z axes respectively..

« Last Edit: November 09, 2013, 07:51:27 PM by uberwolfe »

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Re: how to make an object jump forward
« Reply #4 on: November 10, 2013, 04:30:21 AM »
Ah, I've not tried anything that high. Thanks for your help