DoujinStars
TrueAquaPsych
TrueAquaPsych

patreon


Magic Casting System Preview (pt2) - Berries & Size Scaling

While working on the casting system, I realized that with how all avatars are different in height and "viewport scale" some avatars could not even use the casting system because it was either too big and far away or too small to interact with.

After banging my head against my desk and writing random numbers down for a several hours, I was able to figure out how to accomplish an avatar scaling system. If using a humanoid rig I calculate the height of your avatar using the distance between the avatar bones from head to foot. I then use the magic number of 1.6 to determine the scale of your avatar. I then shape everything in the system to that scale.

As shown above, I can change avatars from large to small and still be able to cast the "marble berry" spell. Which I can also consume in both avatars :)

Magic Casting System Preview (pt2) - Berries & Size Scaling

More Creators