meaning of cbox1&2 [Solved]
meaning of cbox1&2 [Solved]
Hello guys, can someone explain to me what is cbox, please? sometimes I can see that as a component but when I disable these ones nothing visible seems to happened. 
Last edited by Jouki on Mon Oct 27, 2014 12:20 pm, edited 1 time in total.
Re: meaning of cbox1&2
It's a collision box to prevent dropped or thrown items from ending up inside the model. Basic pillars and walls have hardcoded collisions so this is only needed for special cases like statue and pedestal bases. You can use debugDraw = true to visualize the box.
Steven Seagal of gaming industry
Re: meaning of cbox1&2
Thanksantti wrote:It's a collision box to prevent dropped or thrown items from ending up inside the model. Basic pillars and walls have hardcoded collisions so this is only needed for special cases like statue and pedestal bases. You can use debugDraw = true to visualize the box.
Re: meaning of cbox1&2
Iam sorry, but I dont known how use this debugDraw. I try use it from console, cfg, ingame script - but visualization isnt changed.antti wrote:It's a collision box to prevent dropped or thrown items from ending up inside the model. Basic pillars and walls have hardcoded collisions so this is only needed for special cases like statue and pedestal bases. You can use debugDraw = true to visualize the box.
Can you describe me how i must use this command correctly?
My LOG2 projects: virtual money, Forge recipes, liquid potions and
MultiAlcoveManager, Toolbox, Graphic text,
MultiAlcoveManager, Toolbox, Graphic text,
- cromcrom
- Posts: 549
- Joined: Tue Sep 11, 2012 7:16 am
- Location: Chateauroux in a socialist s#!$*&% formerly known as "France"
Re: meaning of cbox1&2 [Solved]
I have the same issue please.Iam sorry, but I dont known how use this debugDraw. I try use it from console, cfg, ingame script - but visualization isnt changed.
Can you describe me how i must use this command correctly?
A trip of a thousand leagues starts with a step.
Re: meaning of cbox1&2 [Solved]
use it in the Object definition
i.e.
i.e.
Code: Select all
{
class = "Surface",
offset = vec(0, 0.64, -0.27),
size = vec(1.7, 0.3, 0, 0),
debugDraw = true
},
{
class = "Clickable",
offset = vec(0, 0.62, 0.17),
size = vec(1.75, 0.5, 0.6),
debugDraw = true
}- cromcrom
- Posts: 549
- Joined: Tue Sep 11, 2012 7:16 am
- Location: Chateauroux in a socialist s#!$*&% formerly known as "France"
Re: meaning of cbox1&2 [Solved]
Well, thanks, but it doesn't wok. Do I have to add the surface component ?
Any pic of what it looks like ? Maybe I have to properly set the editor ? Could last patch have broken this ?
Any pic of what it looks like ? Maybe I have to properly set the editor ? Could last patch have broken this ?
A trip of a thousand leagues starts with a step.
Re: meaning of cbox1&2 [Solved]
Sorry - this was just meant to be an egsample.
You can add "debugDraw = true," in the objectdefinition at every component with a vecBox (surfaces, sockets, clickables...)
So add or enable this command in the definition of the specific object and you will see the Box in the game or in the peview.
In your case I guess it will like this
You can add "debugDraw = true," in the objectdefinition at every component with a vecBox (surfaces, sockets, clickables...)
So add or enable this command in the definition of the specific object and you will see the Box in the game or in the peview.
In your case I guess it will like this
Code: Select all
{
class = "ProjectileCollider",
size = vec(1.1, 3, 0.8),
debugDraw = true,
},