Very simple camera engine

Share your ZGE-development tips and techniques here!

Moderator: Moderators

Post Reply
User avatar
panurge
Posts: 22
Joined: Sat Jul 04, 2009 11:08 pm

Very simple camera engine

Post by panurge »

Ok, this is the first result i came up with: i messed around with CameraRotation and stuff and i obtained a very simple engine for a first person game. Nothing really impressive, but some newbie may find it useful for beginning.

btw: i did not quite understood how ZGE uses CameraRotation values: due to the fact that composition of rotations is not commutative, the following codes should act differently:

Code: Select all

App.CameraRotation.X=uh;
App.CameraRotation.Y=ah;

Code: Select all

App.CameraRotation.Y=ah;
App.CameraRotation.X=uh;
("uh" and "ah" being float values). Now, in the App Properties window, you may choose different default values for rotation of the camera, but what is the order ZGE reads them? I messed with them a bit but still...
Attachments
UHHMMMMAAAAAA.zgeproj
vary simple camera engine
(5.87 KiB) Downloaded 631 times
Post Reply