PDA

View Full Version : Camera problem


professorhong
01-04-2008, 02:09 PM
To keep things brief,

I want to have an object at a fixed distance from the camera, as well as syncing the object and the camera's movements.

I also want some approaches that an Alice programmer would take towards collision detection

Any ideas?

Here is a basic picture to sort things out.
http://img295.imageshack.us/img295/9738/helpei8.jpg

DickBaldwin
01-04-2008, 03:07 PM
To keep things brief,

I want to have an object at a fixed distance from the camera, as well as syncing the object and the camera's movements.

I also want some approaches that an Alice programmer would take towards collision detection

Any ideas?

Here is a basic picture to sort things out.
http://img295.imageshack.us/img295/9738/helpei8.jpg

The first is relatively easy. The second is more difficult.

Arrange the object and the camera to be the correct distance apart with the correct relative orientation. Then set the vehicle property of the object to be the camera, or vice versa, depending on which will be the driver of the two. The camera and the object will then move in unison.

Search the forum archives for collision detection.

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm

professorhong
01-04-2008, 10:44 PM
Thanks, I got it working and within a day of Alice, I'm up to this point.


http://www.megaupload.com/?d=4Q47GOIL

There are some bugs such as
-Leg movement glitching up
-Improper "climbing" the hill
-Faulty collision detection

Could you possibly sort some of these problems out or at least propose a solution to it?