CamLookAt

Blitz3D Forums/Blitz3D Programming/CamLookAt

asdfasdf(Posted 2004) [#1]
Is there a function to make a camera to look at a certain XYZ position?
ex.
CamLookAt(camera,x#,y#,z#)


GitTech(Posted 2004) [#2]
You could create a pivot at x#,y#,z# and use PointEntity to make the camera look at that point.


function CamLookAt(cam,x#,y#,z#)
     piv=createpivot()
     positionentity piv,x,y,z
     pointentity cam,piv
     freeEntity piv
end function