Game Development Community

Weapon Bob?

by Terry Price · in Torque Game Engine · 01/04/2004 (9:23 pm) · 2 replies

I'm sure this is realy easy to implament, just not sure were to add it.

this is what i want to do.

while(animation.moveforward = 1)
{
camera.x = (insert sine wave code here, i forget it)
camera.y = (instert sinewave code here, i forget it)
}

how do i do it?

#1
01/06/2004 (10:14 am)
Take a look at F.W. Hardijzer's resource (just posted) regarding drunk/sniper breathing below

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4993
#2
01/06/2004 (5:39 pm)
Well, technically that is an infinite loop because animation.moveforward will always be 1, simplifying to while (1) {} or while (true) {}. But that is probably not quite accurate either. The concept is correct, but there are 3 dimensions that you probably have to worry about, not just 2.