| To: | REALbasic Games <realbasic-games at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: 3D Ball |
| From: | Niccolo Zapponi <nicky at nosrelo dot it> |
| Date: | Sun, 25 Sep 2005 07:59:11 +0200 |
| Delivered-to: | realbasic-games at lists dot realsoftware dot com |
| References: | <BF5AD574 dot F037%larsjensen at rcn dot com> |
Instead of the KeyDown event, use a timer and Keyboard.AsyncKeyDown.
Sorry but I couldn't make it work.
Here is what I wrote in the Timer:
dim pt as Vector3D
//this will make the camera move
pt = new Vector3D(0,200,350)
if Keyboard.AsyncKeyDown(&h7E) then //forward
mGroup.MoveForward -75
mSphere.Pitch -0.4
elseif Keyboard.AsyncKeyDown(&h7D) then //backwards
mGroup.MoveForward 75
mSphere.Pitch 0.4
elseif Keyboard.AsyncKeyDown(&h7B) then //left
mGroup.Yaw 0.2
Rb3DSpace1.Camera.Yaw 0.2
elseif Keyboard.AsyncKeyDown(&h7C) then //right
mGroup.Yaw -0.2
Rb3DSpace1.Camera.Yaw -0.2
end
Rb3DSpace1.camera.Position = mGroup.ObjectToWorldTransform(pt) //
set the camera position
Rb3DSpace1.Update //draw the new view TileTerrain //make sure the terrain is in the right place what's wrong? Thanks NICK _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 3D Ball, Lars Jensen |
|---|---|
| Next by Date: | Re: 3D Ball, Niccolo Zapponi |
| Previous by Thread: | Re: 3D Ball, Lars Jensen |
| Next by Thread: | Re: 3D Ball, Niccolo Zapponi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |