Pivot point issue

In the cactus demo I’ve tried replacing the cactus with other objects. In this demo video they replace it with a piano. https://www.youtube.com/watch?v=kqUDorMR2IA

When the piano spawns through ground taps it’s pivot is in the center of the object and the piano loads in the ground. The cactus has a pivot at the base of the object. Should models be generated so the pivot is at the base or is there a way to reset new models to have the pivot at the base?

Hey @Ryan_Hill - good catch!

The easiest way to fix the issue would be to adjust the pivot point in 3d modeling software. For example, you could simply open the model in blender, move the model above the ground plane, then re-export as a glb.

To fix this in code, you would need to adjust the y value of the touchPoint vector before it’s used to set the position of the spawned entity.

I was hoping I could just nest and not change the model, but I would probably rather do that over programmatic options.

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.