BabylonJS / Extensions

Extensions for Babylon.js
177 stars 157 forks source link

Added the feature to shift the terrain from the camera #144

Closed jbousquie closed 5 years ago

jbousquie commented 5 years ago

Now the terrain can be hooked to the camera at the shifted position. Example : if the camera only moves along the Z axis, the terrain may be now hooked mostly in front of it so no terrain invisible parts are computed.

terrain.shiftFromCamera.z = 100.0;  // shifts the terrain +100 in front of the camera
terrain.shiftFromCamera.x = 100.0;  // shifts the terrain +100 right to the camera