0
\$\begingroup\$

I have a mesh with a rigid body that moves back and forth like a platform. Other rigidbodies fall onto the upper surface of this cube. The problem I have is that when the platform rigid body moves the other rigid bodies stay in the position they landed in, they do not move with the cube. Everything else physics wise works.

I have tried adding a physicsmaterial to both the platform and the rigidbodies falling onto the platform but this made no difference.

I do no want to tether them to each other because I want them to fall off when they are pushed by other objects.

The platform is moved back and forth using the RigidBody.MovePosition function.

\$\endgroup\$
1
\$\begingroup\$

I do not fully understand why but setting iskinematic to true on the platforms rigidbody gives me the behavior I was after.

\$\endgroup\$
  • \$\begingroup\$ As silly as it sounds, be sure to click the checkmark to accept your own answer as correct. It helps with maintenance and so that people don't see this listed as an unanswered question. \$\endgroup\$ – Jesse Williams Oct 19 '18 at 15:04
  • 1
    \$\begingroup\$ It says that I have to wait two days to mark it as the answer. \$\endgroup\$ – kenjara Oct 19 '18 at 15:10
  • \$\begingroup\$ Oh duh - right you are. \$\endgroup\$ – Jesse Williams Oct 19 '18 at 15:12

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.