How do I make a Billboards Position the Pivot Point of an object?

Hey there everyone,

Recently I’ve been making a tree mining system for a survival game, and I stumbled across an issue where when I set the adornee to a tree the billboard appears too high up, as it rests in the middle of the tree instead of being level with the players head, which is where I want it to be.

I’ve tried messing around with the values of StudsOffsetWorldSpace but my trees are all sized differently so it’ll appear at different heights for different sized trees.

I think a good solution to this is to get the pivot point of the tree and add a few studs on it to get the right position for the billboard.

help would be greatly appreciated!

Use the ExtentsOffsetWorldSpace property instead. This creates an offset based on the bounding box of the Billboard’s adornee, so an offset of Vector3.new(0, 1, 0) will always be at the top of the adornee, no matter its size.

1 Like

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