Jump to content

More precise collision in unity?


Deewad

Recommended Posts

Hello, I've tried to create a simple mod just to figure out how it works, but the collision for this truck bed has it above the sides, so when I try to place a object on it within KSP it wont go onto the actual bed, just floating in the air on the collision mesh, is there anyway I can make a more precise collision model? thanks

here is a picture of the collision model in unity

https://www.dropbox.com/s/5x05kblfih6u902/truckbed.png?dl=0

Link to comment
Share on other sites

HI you need to remove the large box collider  create 3 empty game objects and position them 1 at each of the sides and 1 for the base, then assign each game object a box collider of it's own, adjust to suit model, then drag the new collider objects into your model to become a child of the main model,  so something like. Gameobject/truckbed/collider1.collider2.collider3. and that should do exactly as you require. There's a more complicated way but for this purpose this way is perfect

Edited by SpannerMonkey(smce)
Link to comment
Share on other sites

35 minutes ago, SpannerMonkey(smce) said:

HI you need to remove the large box collider  create 3 empty game objects and position them 1 at each of the sides and 1 for the base, then assign each game object a box collider of it's own, adjust to suit model, then drag the new collider objects into your model to become a child of the main model,  so something like. Gameobject/truckbed/collider1.collider2.collider3. and that should do exactly as you require. There's a more complicated way but for this purpose this way is perfect

Thanks, I did that and its working perfect now

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...