CodeBase - Third Person Mouse Look

Return to the CodeBase listing

Category: Camera

Version: 1.0

0
0

Information

Uploaded: 4th Sep 2004 07:57

Modified: 1st Jan 1970 01:00

Author:  Dave J

Summary

A simple function that rotates the camera/player in the third person by the amount the mouse is moved.

Full Description

This function accepts various arguments that will rotate the camera and object appropriately for a thid person camera type system. The first 3 parameters are the X, Y, Z coordinates of the object/player. The next parameter specifies how far the camera should be from the object/player and the last 2 parameters are simply the amount the mouse has moved, I left these as arguments though as you may wish to modify how fast the camera rotates, so for example, the MouseMoveX() command could be halved so it rotates at only half the speed.<br /> <br /> A sample program is included on how to use the function, the small cube is the 'player' and the large cube is just some 'scenery' which acts as a point of reference.

Comments

No comments yet.