Looking for Camera 'Quake n Shake' Code

Blitz3D Forums/Blitz3D Programming/Looking for Camera 'Quake n Shake' Code

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

RotateEntity this\entity%,EntityPitch(this\entity%)+Rnd(-x#,x#),EntityYaw(this\entity%)+Rnd(-y#,y#),EntityRoll(this\entity%)+Rnd(-z#,z#)


You know there is a turnentity() command there for a reason. :-)

That said, I don't reccomend you rotate the camera for your shake. Just move it about. Turning it will probably make a lot of players sick, and objects in the distance will move about a lot more than objects up close. Also, in movies, the effect is done my shaking the camera, not by tilting it, and people often expect what they've seen in movies, rather than what might happen in real life.

Of course, it's just a suggestion. Rules are made to be broken. :-)