Facepunch / garrysmod-requests

Feature requests for Garry's Mod
85 stars 24 forks source link

Add missing IPhysicsObject methods #998

Open jcwik223 opened 7 years ago

jcwik223 commented 7 years ago

I'm currently working on some projects that heavily involve physics objects (portal-esque gun, Lua grav and physguns) and I'm a bit stuck without a few of these methods. I put the more important ones at the top.

// AddAngleVelocity seems to treat the addition as an applicative force and is not set immediately which is why I'm guessing the Instantaneous version exists


thegrb93 commented 7 years ago

Yes. Torque is so needed. The current method is probably 100x slower.

Kefta commented 7 years ago

Related to https://github.com/Facepunch/garrysmod-requests/issues/944

robotboy655 commented 6 years ago

Added PhysObj.ApplyTorqueCenter( Vector/AngularImpulse ) Added PhysObj.GetShadowPos() = Vector Added PhysObj.GetShadowAngles() = Angle Added PhysObj.GetVelocityAtPoint( Vector ) = Vector Added PhysObj.SetContents( uint ) Added PhysObj.GetContents() = uint