Jump to content

Collision between two bodies / Deactivate?


Yue
 Share

Recommended Posts

My concern is how is it possible to disable the collision of one body with another?

The fact is that I have a vehicle forklift and assigns the shovel as a father chassis, but I need to deactivate the shovel collide with the chassis, if I don't do it if I get too close to the chassis I see strange effects, that make the vehicle turn uncontrollably. 

Any suggestions?

MC.thumb.png.7ac45f80850064ef1b5a49b8ecc8edbf.png

The idea is that the front of the shovel does not collide with the chassis, however, if it collides with other objects such as terrain or obstacles. 
 

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

15 hours ago, Josh said:

If the lift and the chassis are connected by a joint they will not collide.  Also See the spectator script for a function you can use to discard collisions.

I can't understand, the translator doesn't help me much. 

Where can I find an example?

I was thinking composite bodies, but I can't find anything significant. 

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

23 minutes ago, Josh said:

Actually, I think the elevator (lift) piece is hitting your wheels.  You need to make sure the wheels are small enough to not get in the way.

Okay, if that's it, I don't have it so close to the tires on the elevator. However, the elevator does not collide with any target in front of it, so if I put mass 10 in the elevator, it breaks away from the chassis. 
shovel
I'm using self. shovel: SetParent (self. chassis)

In the same way, I don't see the feasibility of raising and lowering the shovel so that for example I can lift a pallet with boxes on top of it.

Kind regards.

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...