Jump to content
georgeashby123

Collission Box`s

Recommended Posts

Is there a way i can quickly add a collission box that fits around my whole object, people can go inside the object so i cant just use 1 box all around the object, is there a quicker way to add objects around it.

Share this post


Link to post
Share on other sites

Is there a way i can quickly add a collission box that fits around my whole object, people can go inside the object so i cant just use 1 box all around the object, is there a quicker way to add objects around it.

Yes. Add more boxes

Share this post


Link to post
Share on other sites

you need something called a 'roadway' everwhere you want the player to be able to walk, this is literally just a plane that says 'hey, this is a floor, you can walk here' if the player walks on a collision box there is nothing saying he can walk there hence the floating, refer here: https://community.bistudio.com/wiki/LODfor good info on all the LOD's you are looking for, geometry and roadway (geometry physX as well for vehicles) 

Share this post


Link to post
Share on other sites

And as for your original question as M1lkm8n said, you need to have the geometry (collision) made out of several boxes for each wall/object 

an example:

 

my object: https://gyazo.com/5f0895981ce9cf863305f0ed6c798d1e

 

my collision boxes: https://gyazo.com/1f6d69abe759b1361263b1453ba8cd7fBetter example of the different boxes: https://gyazo.com/58a0b401b3d1101550955a06c79f9391

Each wall has its own separate collision box, you can not just have one box that only allows for collision where the resolution LOD has faces. 

Share this post


Link to post
Share on other sites

And as for your original question as M1lkm8n said, you need to have the geometry (collision) made out of several boxes for each wall/object 

an example:

 

my object: https://gyazo.com/5f0895981ce9cf863305f0ed6c798d1e

 

my collision boxes: https://gyazo.com/1f6d69abe759b1361263b1453ba8cd7fBetter example of the different boxes: https://gyazo.com/58a0b401b3d1101550955a06c79f9391

Each wall has its own separate collision box, you can not just have one box that only allows for collision where the resolution LOD has faces. 

 

How do i make it a step so i can walk up it? At this moment in time, i can only get on it by dropping ontop. I would like to be able to walk up the side.

Share this post


Link to post
Share on other sites

so by that I take it you mean stairs/ramp to get to the top, thats simple its just a roadway up the stairs

Staircase: https://gyazo.com/8d542555f8a144a8c15d8887b3d385bd

Roadway: https://gyazo.com/f050c745213ba862871a9526f92170cb

StairCase+Roadway: https://gyazo.com/645b0511024b7b16d19b12dbf15abdf5(obviously these are on seperate layers im just showing how they overlap

 

So basically to do steps you set a roadway with one edge at 0 on the Z axis (height) and the opposite edge at the height of the other roadway

 

Share this post


Link to post
Share on other sites

so by that I take it you mean stairs/ramp to get to the top, thats simple its just a roadway up the stairs

Staircase: https://gyazo.com/8d542555f8a144a8c15d8887b3d385bd

Roadway: https://gyazo.com/f050c745213ba862871a9526f92170cb

StairCase+Roadway: https://gyazo.com/645b0511024b7b16d19b12dbf15abdf5(obviously these are on seperate layers im just showing how they overlap

 

So basically to do steps you set a roadway with one edge at 0 on the Z axis (height) and the opposite edge at the height of the other roadway

 

 

I have done that, but i cannot walk up the ramp, here is screenshots:

 

https://gyazo.com/7d67ad64bd0db6929d5aa0663b29f299- Collission Box

https://gyazo.com/2d672f0dfeb9d6dd72a55bb91d5e6cd5- Roadway

 

It does not even act as if there is a collision box there.

Share this post


Link to post
Share on other sites

Ok first, you can use triangles for the GEO LOD so using a square there is not necessary,

 

are you saying that you cant walk up it and that you walk through it? 

Share this post


Link to post
Share on other sites

Ok first, you can use triangles for the GEO LOD so using a square there is not necessary,

 

are you saying that you cant walk up it and that you walk through it? 

Yes

Share this post


Link to post
Share on other sites

Ok first, you can use triangles for the GEO LOD so using a square there is not necessary,

 

are you saying that you cant walk up it and that you walk through it? 

 

And how does one place a triangle? It is not in the create menu.

Share this post


Link to post
Share on other sites

I think the way to do it with steps is to make individual step as it is on the actual model. so your collision boxes for steps should look like steps instead of one box.

Share this post


Link to post
Share on other sites

I think the way to do it with steps is to make individual step as it is on the actual model. so your collision boxes for steps should look like steps instead of one box.

Is it required to have it in the actual model?

Share this post


Link to post
Share on other sites

I think the way to do it with steps is to make individual step as it is on the actual model. so your collision boxes for steps should look like steps instead of one box.

?

Share this post


Link to post
Share on other sites

wait if you don't have anything on the visual lod for the ramp you just want them to kinda walk up a 'invisible' ramp, you do not need any collision box what so ever, just the roadway, collision boxes should only be used to block the player walking through visual parts of the model or areas you dont want them to access. Also for steps no you do not need a different box for each individual step https://gyazo.com/0004c03f66a643eaec8f3c81187b8875that is my collision for the steps in the previous model, this works just fine as the player only needs a rough collision area, and the collision box themself have nothing to do with where the player can walk (ontop of that is, obviously it blocks areas) 

Share this post


Link to post
Share on other sites

also note that is an old model so for instance where the railing has two seperate boxes that could just be one single box as this is only for player collision and one box that covers that area would work fine, of-course if you are using your player GEO for your bullet collision as well (not advised) then that would be the best way to do it 

Share this post


Link to post
Share on other sites

also note that is an old model so for instance where the railing has two seperate boxes that could just be one single box as this is only for player collision and one box that covers that area would work fine, of-course if you are using your player GEO for your bullet collision as well (not advised) then that would be the best way to do it 

 

For some reason, i can still not walk on the roadway, it just noclip`s me through it, it pretends it isnt there, i do not have a collission box under it, i only have the roadway.

 

I think the way to do it with steps is to make individual step as it is on the actual model. so your collision boxes for steps should look like steps instead of one box.

Share this post


Link to post
Share on other sites

For the stairway, the roadway should be flat, a simple inclined plane.

What do you mean by this?

 

This is what my plane currently looks like: https://gyazo.com/fd3504889c705335e8f45192fc575f99- The ramp plane is selected, and the black line shows where the ramp is suppose to take me

 

Why is this not letting my walk up it?

Share this post


Link to post
Share on other sites

as george said, roadways are ONLY planes do not use a cube or anything else to make it just planes, so add a plane to your roadway LOD and put one edge of the plane at the same level as the rest of the roadway and the opposite one at the floor level (0) 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×