Buggy "func_physbox"

Avatar
FireFusorf
57 Posts
Posted May 26, 2013
Hello everyone !
I have a problem when I make physboxes in my map : i can't pick them up when pressing "USE" (E), I can't even push them. :angrysquare:
Advertisement
Registered users don’t see ads! Register now!
Avatar
LoneWolf2056
193 Posts
Posted May 26, 2013
Replied 14 minutes later
Under flags have you checked PHYSGUN can always pick up or Enable Motion on Physgun grab?
Avatar
Lpfreaky90
2,842 Posts
Posted May 26, 2013
Replied 52 minutes later
Another thing; physboxes have a certain mass; it depends on the material and the size; if the mass exceeds 85kg you can't pick it up anymore. I'm pretty sure there's also an option for override mass; maybe that can bring it to a pickupable range too.
Avatar
Gemarakup
1,183 Posts
Posted May 26, 2013
Replied 16 minutes later

Lpfreaky90 wrote:
Another thing; physboxes have a certain mass; it depends on the material and the size; if the mass exceeds 85kg you can't pick it up anymore. I'm pretty sure there's also an option for override mass; maybe that can bring it to a pickupable range too.

He can't push it, so it doesn't have anything to do with mass. Maybe, make sure you flagged, "Enable motion".

Avatar
FelixGriffin
2,680 Posts
Posted May 26, 2013
Replied 28 minutes later
The algorithm to calculate mass is glitchy and tends to return huge values. Try hollowing it out with Tools > Make Hollow to a radius of 4 units, or sending it the Mass input.
Avatar
FireFusorf
57 Posts
Posted May 26, 2013
Replied 2 hours later
Thank you for all your anwsers ! I am trying your solutions.
I have specified "metal" as material. Maybe that explains the mass problem. I'll check the flags.

Also, as the physbox consists on a lot of parts, is it possible to export the brushes as a .mdl model ? It would be a good optimisation.

Avatar
FelixGriffin
2,680 Posts
Posted May 26, 2013
Replied 9 minutes later
Sure, use Propper. There's a tut somewhere around here to use it with the P2AT.
Avatar
zivi7
649 Posts
Posted May 26, 2013
Replied 2 hours later
It seems like the texture you give the physbox also plays a role in the mass calculation. You could try applying one of the wood textures to see if it changes.

However, physboxes I wanted the player to pick up usually had one of the standard test chamber metal textures. They mostly where 32 units long and high and 8 units deep, it could be that 64x64x8 also worked, I can't remember now.

Avatar
ChickenMobile
2,460 Posts
Posted May 26, 2013
Replied 4 hours later
Instead of hollowing this object or anything else, there is a keyvalue in the object called Mass Scale. By setting this to a really low number this will make the object lighter.
e.g. 0.05 (or 5% of the original mass)
Avatar
FireFusorf
57 Posts
Posted May 29, 2013
Replied 2 days later
News : problem still not solved. I managed to make a 16x16 physbox I can pick up (with a wood texture, wood material) but 32x32 fails until I crave it.
Also, It seems that the "mass scale" variable only affects on the object's falling speed.

My last hope is to turn my physbox to a prop with propper. I'll keep you informed

Avatar
josepezdj
2,386 Posts
Posted May 29, 2013
Replied 44 minutes later
The mass scale is not only for the falling speed the box has, it should be working to let you grab it. Did you decrease the mass scale when you increased the func_physbox size from 16x16u to 32x32u? Try for example 0.01
Avatar
FireFusorf
57 Posts
Posted May 30, 2013
Replied 1 day later
Yes, I have even tried 0.0001, still the same problem :/
Avatar
josepezdj
2,386 Posts
Posted May 30, 2013
Replied 1 hour later
You are obviously doing something wrong. Could it be that you create the func_physbox too close to a surface like the floor and it gets trapped/stuck in it?

I'm attaching a test, check and let us know what were you doing wrong, ok? :thumbup:

Attachments
Firefusorf_test.7z
0.06 MB 33 downloads
Avatar
FireFusorf
57 Posts
Posted May 31, 2013
Replied 19 hours later
Well, your's works, I have no idea why... well thank you :smile: It works in any map I create, exept in my test map... It is very old and I did very stange thing in it ^^. Go to bin, test map !
Avatar
josepezdj
2,386 Posts
Posted Jun 01, 2013
Replied 1 day later

FireFusorf wrote:
...I have no idea why... / .....Go to bin, test map !

You could post your test map so we can help you find the problem :biggrin: This is like a puzzle unsolved, I sincerely think a thread should be closed (or abandoned) when the issue has been found, never before. It can allow ppl to revise each of the main properties to consider in order to get the proper settings, don't you think?

Avatar
FireFusorf
57 Posts
Posted Jun 01, 2013
Replied 1 hour later

Well if you insist, here is my test map ! :smile: I managed to recover it

http://www.mediafire.com/?rwz7rdvqhf9d7sw
Also, i did not mentionned that, but i can't pick up the panel too. haven't tried in another map.
Thank you for your help :smile:

Advertisement
Registered users don’t see ads! Register now!
Avatar
zivi7
649 Posts
Posted Jun 03, 2013
Replied 2 days later
Like I mentioned earlier, the problem seems to be the texture - only that my suggestion to try a wooden texture sucked. At least the wooden one you tried doesn't work. However, when you apply the metal one you have used on the smaller boxes that you can pick up, you'll see that you can pick up the bigger box as well.