Game Development Community

Weapon swing momentum/lag

by Roger Bacon · in Torque Game Engine · 11/23/2004 (12:25 am) · 0 replies

Hi,

Ive just implemented a gun into torque and it looks nice visually but its totally static so appears very false.
http://www.garagegames.com/mg/forums/result.thread.php?qt=22759

what would be the best way to get some form of movement on it? (without animating the dts?)

im thinking it would be nice to simply bob the gun up and down depending on the player speed. and perhaps subtlely rotate the gun in the direction you are turning.

looking at halflife 2 they have a floating gun, which has momentum and lags behind the player rotation. so if you swing aroud very fast it lags behind, and when you come to a stop it keeps moving and gently comes to a stop. this would be slightly more complicated i think. :)

im wondering, would this be an engine modification, or doable in torquescript?. I own the sdk but im not keen on modifying the code 'under the bonnet' yet until I am more familiar with the engine. :)

thanks
Roger