2021.9.29.842 - Auto-computing primitive collider sizes to fit geometry/hierachy

Neos VR

Welcome to the metaverse! A shared social universe where both casual users and creators coexist. Play and explore with your friends, collaborate with your coworkers or grab powerful building tools and create something new right inside VR.

Hello everyone! Another small build with some improvements, here's a bunch of functions to easily setup different types of primitive colliders! Most of them now have a method to automatically calculate one based off the geometry/objects in the hierarchy through the inspector, so you don't have go guess their sizes. There's also a quick way to visualize them too. We'll have a better method in the future, but this one was quick and non-invasive to implement. [h2]New Features:[/h2] - Added "Set from local/global bounds (precise)" to BoxCollider -- This uses the precise bounding box calculation which transforms every vertex for mesh based sources -- Note that the computation runs asynchronously, so the result might not get assigned immediatelly - Added "Set From Precise Bounds" to Sphere Collider -- This actually computes an exact bounding box sphere for the hierarchy and geometry, which can provide much tighter fit than one generated from the bounding box - Added "Set From Precise Bounds" to CylinderCollider -- This processes each vertex and potential bounding point in the hierarchy, to find an accurate offset, radius and height of a cylinder to encompass the hierarchy - Added Set from precise cylinder bounds to CapsuleCollider -- This uses the same algorithm as for cylinder and then fits the capsule inside of it. -- Since the capsule shape is rounded at the ends, it means that it might not fully envelop the source hierarchy, but this can be desirable in some cases - Added "Visualize Collider" in the inspector for a quick collider visualization using existing Debug visual system -- This visualization is live, but only persists while the inspector for the collider is open. -- Note that we'll likely replace this with a proper collider gizmos in the future that will provide better visual and allow you to visually change the shape as well [h2]Tweaks:[/h2] - Merged Korean locale additions by @MirPASEC - Merged Japanese locale additions by @Aesc/あすく - Merged Russian locale additions by @Shadow Panther [RU/EN, UTC+3] [url=https://patreon.com/NeosVR][img]{STEAM_CLAN_IMAGE}/32580497/43ee030e042a238a46ad59cfcc19b99b0e154f35.png[/img][/url] [url=https://discord.gg/NeosVR][img]{STEAM_CLAN_IMAGE}/32580497/7742fb265ee608cb2a9a6b41aaa6138976155172.png[/img][/url] [url=https://twitch.tv/neosvr][img]{STEAM_CLAN_IMAGE}/32580497/dd2c2f6d46e45ccf4178688bcbe67f0adc0acf9a.png[/img][/url]