コード例 #1
0
        public static BuildCollisionLayerConfig WithWorldBounds(this BuildCollisionLayerConfig config, float3 min, float3 max)
        {
            var aabb = new Aabb(min, max);

            return(config.WithWorldBounds(aabb));
        }
コード例 #2
0
 public static BuildCollisionLayerConfig WithWorldBounds(this BuildCollisionLayerConfig config, Aabb worldAabb)
 {
     config.settings.worldAABB = worldAabb;
     return(config);
 }
コード例 #3
0
 public static void GetCenterExtents(Aabb aabb, out float3 center, out float3 extents)
 {
     center  = (aabb.min + aabb.max) / 2f;
     extents = aabb.max - center;
 }