Re: Making a func_physbox rotate
Posted by kinase on Mon Jan 8th at 2:51pm 2007
I have a func_physbox which I'd like to have rotating in place on the start of a map but which could be picked up by a player with the grav-gun and thrown about like other physobjects. I've tried various things to no avail. Is anyone able to enlighten me as to how I can achieve this, because I'm stumped " SRC="images/smiles/sad.gif">
Re: Making a func_physbox rotate
Posted by Captain P on Mon Jan 8th at 3:39pm 2007
You can have a phys_torque target it, to give it a continual rotation, and keep it in place with a phys_ballsocket, giving it a low break force so the grav-gun can rip it from it's original position. Give the func_physbox an output, OnPhysGunPickup, to deactivate the phys_torque with. This will stop the rotation once the object has been picked up. Alternately, you can make the phys_ballsocket deactivate the torque, when it breaks. That would ensure the object stops rotating when it gets detached.
Captain P
member
1370 posts
247 snarkmarks
Registered: Nov 6th 2003
Location: Netherlands
Occupation: Game-programmer