Print Camera position X,Y,Z
Blitz3D Forums/Blitz3D Beginners Area/Print Camera position X,Y,Z
| ||
How can i print the current camera position X,Y and Z coordinates? Thank you. |
| ||
Text 50,50,"Cam_x: "+EntityX(cam)+" Cam_y: "+EntityY(cam)+" Cam_z: "+EntityZ(cam) Edit: Use EntityX/Z/Y() commands to get the location of a entity... otherwise, keep track of its position like so: personx=0 persony=0 personz=0 PositionEntity person,personx,persony,personx then print those veriables like so: Text 50,50,personx Hope i helped |
| ||
Thank you Yahfree, you've helped alot. By the way, is there any way that I can use in 3D editor prepositioned and named pivots or objects to attach the camera to them (so I dont have to create and position them in blitz)? |
| ||
I'm not sure what tool you use to create the environment but I think (I could be wrong) that if you create bones/joints and export as b3d and then load the mesh with loadanimmesh instead of loadmesh then these bones will be present as pivots. You can then find them with the 'findchild' command and position your cameras by finding the appropriate bone/child and then setting the position/orientation to the camera. |