Rotation Help - Spinning around a model

Blitz3D Forums/Blitz3D Programming/Rotation Help - Spinning around a model

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.

by far the easiest way is the humble pivot.

centerpivot = createpivot()
positionentity centerpivot at target object to rotate about
position camera exactly at distance away from target
PointEntity Camera,centerpivot
EntityParent Camera,centerpivot

All you do now is RotateEntity centerpivot or TurnEntity centerpivot. And the camera will roll effortlessly around. EntityParent camera,0 will break the attachment if you're wondering.