Hi there anybody know how to make an orbit camera im making puzzle game i have one in Monogame but im moving to Xenko for the fantastic pbr and the easier interface is it a case of just copying the basic camera and fitting my current code in the update ?
many thanks
This is how I would would try to do it.
- Create a camera controller entity, place the position at 0,0,0.
- Place a camera at say… 20, 0, 0 as a child entity w/ camera component.
- Rotate the camera view toward the parent entity’s 0,0,0 manually in Game Studio.
- Wire up controls to rotate the base entity X, and Y (or Z) depending on rotation.
- ^ Controls would be click and drag deltas in 2d Mouse space, or could be raycast deltas in 3d space.
- Rig up the mouse wheel to move X + or -.
I find camera stuff easy to work with Xenko… looking forward to seeing what you come up with!
thanks jarmo i will give it a try im surprised there is not allready a built in Arcball camera as this is used a lot.
Yaaaa thanks Jarmo it worked