0
Beantwortet

Problem with collisions

Bo Adam vor 3 Jahren in realvirtual.io Starter and Professional aktualisiert von Support vor 2 Jahren 7

Hello,

It's me again, I have a problem with a MU, I "spawn" This mu onto a transport surface in g4atransport. It stays in position and can be gripped by the gripper. But when the gripper places it into a warehouse (With a mesh collider) It just falls through the warehouse and floor.
Below are the warehouse settings and the carrier (MU) settings

Image 551

Image 552

Image 553

Antwort

Antwort
Wird überprüft

It is hard to say what your problem is - everything should work out the box. Can you send your project with a description where the problem occurs and I will directly check in your projet.

I now get this error message, but the carrier starts as being kinematic, but that changes as soon as i start the game.

As soon as the gripper opens, the rigidbody stops being kinematic.

In Grip I found the only piece of code adressing the kinematic of the MU:

if (PlaceLoadOnMUSensor == null)
{
if (!NoPhysicsWhenPlaced)
rb.isKinematic = false;
}

Commenting out the line rb.isKinematic = false; did not work.

This feels like it is inverted as well. As NoPhysicsWhenPlaced is true, it shouldnt have phisics so rb.isKinematic should be false. Now rb.isKinematic does not change when NoPhisicsWhenPlaced is true.  

if (PlaceLoadOnMUSensor == null)

{

if (!NoPhysicsWhenPlaced)

rb.isKinematic = true;

else

rb.isKinematic = false;

}

This fixed it!

Antwort
Wird überprüft

It is hard to say what your problem is - everything should work out the box. Can you send your project with a description where the problem occurs and I will directly check in your projet.