CamLookAt

Blitz3D Forums/Blitz3D Programming/CamLookAt

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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