Skip to content

Commit

Permalink
Static Mesh: Update shape factories
Browse files Browse the repository at this point in the history
  • Loading branch information
Eideren committed Dec 21, 2018
1 parent cbcc27d commit 5c11f1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 13 additions & 0 deletions sources/engine/Xenko.Assets/Physics/ColliderShapeFactories.cs
Expand Up @@ -95,4 +95,17 @@ public override ColliderShapeAsset New()
return Create();
}
}

public class ColliderShapeStaticMeshFactory : AssetFactory<ColliderShapeAsset>
{
public static ColliderShapeAsset Create()
{
return new ColliderShapeAsset { ColliderShapes = { new StaticMeshColliderShapeDesc() } };
}

public override ColliderShapeAsset New()
{
return Create();
}
}
}
@@ -1,7 +1,6 @@
// Copyright (c) Xenko contributors (https://xenko.com) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.

using System;
using System.Collections.Generic;
using Xenko.Core;
using Xenko.Core.Mathematics;
Expand Down

0 comments on commit 5c11f1f

Please sign in to comment.