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.

Function cameraRumble(this.camera,x#,y#,z#)
	RotateEntity this\entity%,EntityPitch(this\entity%)+Rnd(-x#,x#),EntityYaw(this\entity%)+Rnd(-y#,y#),EntityRoll(this\entity%)+Rnd(-z#,z#) 
	;adjust & play rumble bass
End Function