playMaker

Author Topic: Add Force Does Not Apply Force at All  (Read 2357 times)

ciyo

  • Playmaker Newbie
  • *
  • Posts: 3
Add Force Does Not Apply Force at All
« on: June 24, 2013, 05:39:12 PM »
Hey everyone!

I am working on a simple task. When user press the space, I call add force and apply force on the main character to jump.

States work well; however, the force cannot be applied on the character. If I increase the force (for examle (0, 1e+14, 0 ) ) or decrease the mass of the character ( for example 1e-07 ), the character start shaking.

Rigidbody has default values.

Thank you for your helping!

Cool_Flow

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Add Force Does Not Apply Force at All
« Reply #1 on: June 24, 2013, 05:48:54 PM »
To add force to to a rigidbody body, you need to add some serious power. Just to get it to move up on the Y-Axis for a basic rigidbody, I need to set the Y-Axis Force to 500.

Could be a better way to do this, but I'm still new to playmaker. Hopefully this helps a bit.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Add Force Does Not Apply Force at All
« Reply #2 on: June 24, 2013, 05:54:57 PM »
Just to negate gravity pulling the object down you need to add force of about Mass * 9.8 on the Y, so if your rigidbody has a mass of 10 then you need 98 force just to make it float and not move down. With 200 force, it would steadily move up.

I don't think you can input engineering values into the fields. I haven't had any trouble with regular numbers or floats.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D