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 / How do you control a mesh in real time?

Author
Message
Servant Saber
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location:
Posted: 9th Aug 2008 08:05
Hello all, I'm back with more questions! yay!(or not)
Anyway, I've been trying to work on a Space simulator and I've been wondering how one uses a mesh for a ingame avatar(basicly first of third person view from your spaceship)
Would i have to update the meshs location with my camera, or is there a easier way?
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 9th Aug 2008 17:39 Edited at: 9th Aug 2008 17:39
I don't think it's possible to control a mesh. Unless, of course, you mean an object. Those you CAN control. To load your own custom object, use the LOAD OBJECT command. Here's some simple code showing how you might move an object around. I used a cube, but you can load in your own object if you like. I'll leave it to you to implement the 3rd person camera . Have a look at TDK's tutorial on Set Camera To Follow for help with that.
The reason why in the following example I don't use TURN OBJECT LEFT and TURN OBJECT RIGHT is because the SET CAMERA TO FOLLOW command doesn't seem to like those two commands.



Good luck

Login to post a reply

Server time is: 2024-11-24 22:42:47
Your offset time is: 2024-11-24 22:42:47