Page 1 of 1

Hide entity collision_box

PostPosted: Tue May 20, 2014 04:58
by webdesigner97
The collision_boxes for entities are useful, but when a player sits e.g. in a car, helicopter or whatever, they just look ugly.

Being able to hide/show the collision_box while keeping its functionality would be very useful and I think quite a mot of mods would need this.

Image

Re: Hide entity collision_box

PostPosted: Tue May 20, 2014 08:07
by thetoon
Allowing them to rotate with the entity would be nice too, while we're at it. Or do they already?

Re: Hide entity collision_box

PostPosted: Tue May 20, 2014 14:53
by Jordach
thetoon wrote:Allowing them to rotate with the entity would be nice too, while we're at it. Or do they already?

They don't. (Another solution is to make the box that covers all possible rotations, but does become much larger.)

Re: Hide entity collision_box

PostPosted: Tue May 20, 2014 14:54
by thetoon
Jordach wrote:(Another solution is to make the box that covers all possible rotations, but does become much larger.)


This is not a solution : it will then collide with many things it shouldn't.

Re: Hide entity collision_box

PostPosted: Wed May 21, 2014 21:34
by philipbenr
Press [ f1 ] is what I do... Many newer people wouldn't know though...

Re: Hide entity collision_box

PostPosted: Thu May 22, 2014 05:46
by webdesigner97
philipbenr wrote:Press [ f1 ] is what I do... Many newer people wouldn't know though...

F1 hides the whole HUD. i want to toggle the box, when the driver gets in/out.

Re: Hide entity collision_box

PostPosted: Thu May 22, 2014 09:35
by Pavel_S
Yeah. I vote for implementing this feature too as well as for let collision box rotate!

Re: Hide entity collision_box

PostPosted: Thu May 22, 2014 18:20
by philipbenr
Sounds good to me. Is this in the giving feedback to the core developers thread?

Re: Hide entity collision_box

PostPosted: Thu May 22, 2014 19:04
by Calinou
thetoon wrote:
Jordach wrote:(Another solution is to make the box that covers all possible rotations, but does become much larger.)


This is not a solution : it will then collide with many things it shouldn't.


Make it an average of “fully straight“ and “45 degrees rotated” (like boats and hovers in Carbone), it works quite well.

Anyway, OP should reduce the bounding box height for now to avoid issues.

Rotating hitboxes are very hard to set up, if not impossible.

But, the ability to hide bounding box is a good idea anyway, but not yet implemented.

Re: Hide entity collision_box

PostPosted: Fri May 23, 2014 03:04
by Pavel_S
Calinou wrote:...
Rotating hitboxes are very hard to set up, if not impossible.
...


Why? What`s the difference between simple cube and hitbox? Or the problem is in complicated hit detection?