Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Camera help please

Author
Message
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 8th Sep 2003 21:56
This will sound daft but how would I get the camera moving left and right with my ball in this piece of code in 0.1 increments.

I have it moving backwards and forwards 0.1 at a time with the move camera command, moving -0.1 and 0.1 respectivly.

Sorry if this sounds silly but any help would be apreciated .

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk
TeePee
21
Years of Service
User Offline
Joined: 18th Apr 2003
Location: Australia
Posted: 9th Sep 2003 10:33 Edited at: 9th Sep 2003 10:34
alright this is just one way of doing it....
replace these two lines:



with.....



all your doing in that is using newxvalue and newzvalue to work out new coordinates for the camera by putting in the angle (camera angle y()+90), the starting position (camera position x()) and the step value (0.1)
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 9th Sep 2003 16:07
Cheers mate, that's great.
I'll give that a go.

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk

Login to post a reply

Server time is: 2024-09-20 21:33:24
Your offset time is: 2024-09-20 21:33:24