-1
\$\begingroup\$

I was trying to make a simulation of an object that needs gravity to work, a hydraulic movement-assistance system for disabled people. All parts are aligned properly, all objects have mesh colliders and rigidbodies, but still gravity does not affect the limb and it floats in the air. How can I make gravity affect it? As you can see, the small cube with rigid body falls, but the leg does not

\$\endgroup\$
  • \$\begingroup\$ anyone know how to fix this? \$\endgroup\$ – parseguy May 31 '16 at 20:57
  • \$\begingroup\$ have u assigned rigid body? \$\endgroup\$ – Muhammad Faizan Khan Jun 1 '16 at 7:42
  • \$\begingroup\$ yes, I have, but the unity editor prompted me to make it kinematic, and it wont move, if I uncheck kinematic, the object will dissapear \$\endgroup\$ – parseguy Jun 1 '16 at 12:09
  • \$\begingroup\$ If kinematic is enabled, the object will not be driven by the physics engine, and can only be manipulated by its Transform. \$\endgroup\$ – Muhammad Faizan Khan Jun 1 '16 at 12:40
  • \$\begingroup\$ provide detail about your problem \$\endgroup\$ – Muhammad Faizan Khan Jun 1 '16 at 12:41
0
\$\begingroup\$

As you said that rigid-body kinematic property is true then you should need to remember that

It ignores the gravity if isKinematic == true.

If this is not the case then, that leaves three options.

  1. it's colliding with something and can't fall.
  2. it's so big that you can hardly see it move.
  3. the visible object isn't the object being affected by gravity.(ref)

As you mention in comments how to move object without physics then you can use different solutions like 1. using translate 2. MoveTowards - movement toward specific target 3. by changing position

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.