jsdream Posted April 22, 2017 Share Posted April 22, 2017 Hi guys! As I can see camera target is being set to mesh's absolute position (https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.followCamera.ts#L46): var targetPosition = cameraTarget.getAbsolutePosition(); Is it possible to somehow set an offset to camera target? So for example when we're following a character, by default the camera will be pointing to middle of the character mesh, but what if I want to point the camera to characters head or even above it, how could I achieve that? Hope my question is clear enough. Initially I posted the question here, but following JohnK suggestion I'm creating this new separate topic for the question. JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted April 23, 2017 Share Posted April 23, 2017 Would using a parent and child help as in http://www.babylonjs-playground.com/#12WBC#87 jsdream and mrmdes 2 Quote Link to comment Share on other sites More sharing options...
jsdream Posted April 23, 2017 Author Share Posted April 23, 2017 Thank you John very much! That's exactly what I was looking for. You're my hero of the day. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.