positioning things like camera's, need help

Blitz3D Forums/Blitz3D Beginners Area/positioning things like camera's, need help

andycraig(Posted 2005) [#1]
i dont know what code is the middle
e.g. cameraviewport,?,?,?

what are the numbers for middle, top left,right, bottom right, left?

plz help


Stevie G(Posted 2005) [#2]
Note sure what you're on about .. the manual explains this pretty clearly. What you trying to do?

http://www.blitzbasic.com/b3ddocs/command.php?name=CameraViewport&ref=3d_a-z


jfk EO-11110(Posted 2005) [#3]
Middle? Hmm...

If you want to position an entity like a camera or mesh, you can use various commands, depending on your needs.

"PositionEntity entity,x,y,z" will position it at an absolute World coodinate, where x,y and z could be described as horiznontal position, vertical position and depth distance.

Position 0,0,0 is the center of the universe, you can use positive and negative coodinates.

"TranslateEntity entity,xs,ys,zs" will move an entity by the amount you define in xs,ys or zs, using the 6 directions explained before.

"MoveEntity entity,xs,ys,zs" will move the entity relative to it's current angle. Example: Moveentity cam,0,0,1 will moe the camera (named "cam") forward one unit, no matter what direction it is looking. You would use this command to walk forward in a game.

You can rotete an entity using the Commands RotateEntity and TurnEntity, where RotateEntity uses absolute angles and TurnEntity uses step amounts.