warrickct / android-vr-model-viewer

Model viewer for mobile. Compatible with google daydream and gearVR
0 stars 0 forks source link

Make models spawn at a similar size #3

Open warrickct opened 6 years ago

warrickct commented 6 years ago

Models currently instantiate at the scale of the modelling software. Ideally, they load around the same size.

warrickct commented 6 years ago

Create a box at the centre of the loaded model. While the box collides with the model, increase box size until it is so large it no longer collides with the model. Once the box stops growing, set it to the parent of the model object and scale it back down to 1 to get the right scale.

warrickct commented 6 years ago

Update: TriggerStay/CollisionStay continue to trigger when box completely encloses covers the model. There might be a way to use the intercepted bounds of the mesh instead.