Jump to content
PoussinJoyeux

[Scene creation] Collision not detected between barrel and box - SOLVED

Recommended Posts

Hi,

 

I'm a total beginner in Leadwerks so my question will probably be an easy one mellow.png

 

I create a new scene.

I put a big box (BOX1) in it for the floor, a little box (BOX2) with a mass of 1.0 and a barrel (from "models") with a mass of 1.0.

BOX2 and barrel are put above BOX1.

 

When I "run" the scene, BOX2 goes down and collide with BOX1 and stays on it but the barrel goes down and continue to go down through BOX1 and dissapear. wacko.png

 

I don't understand why the collision is not detected for barrel because all parameters seems identical between BOX2 and barrel.

I tried different collision type (prop, scene, debris...) and result is the same in all cases.

 

What did I miss for barrel? Is it because it is not a simple shape as a box or sphere and so the collision must be managed differently (with a script for instance)?

 

Thanks for your help! smile.png

Share this post


Link to post

CSG brushes are automatically having a physics shape which is exactly like their appearance. For models you need to specify a shape (.phy) or a csg brush.

Share this post


Link to post

Some screenshots of physics setup on all 3 and the final result might help us solve this puzzle better.

Share this post


Link to post

Thanks for all your answers! Great community here! smile.png

 

Doing like AggrorJorn said (="specify a shape") solved my problem. Thanks!

 

I can now continue to design my first scene. Yeah!!!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...