Skip to content
Permalink
Browse files

[Physics] Fix typo in PhysicsEngineFlags.ContinuosCollisionDetection (f…

…ixes #152)
  • Loading branch information
xen2 committed Jul 2, 2019
1 parent 0a8d7ba commit 5bb43aabbc3568e5793928f63903bdccb48907f8
@@ -2,6 +2,7 @@
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.

using System;
using Xenko.Core;

namespace Xenko.Physics
{
@@ -18,6 +19,8 @@ public enum PhysicsEngineFlags

UseHardwareWhenPossible = 0x8,

ContinuosCollisionDetection = 0x10,
// Typo before 3.1 (https://github.com/xenko3d/xenko/issues/152)
[DataAlias("ContinuosCollisionDetection")]
ContinuousCollisionDetection = 0x10,
}
}
@@ -133,7 +133,7 @@ internal Simulation(PhysicsProcessor processor, PhysicsSettings configuration)

solverInfo.SolverMode |= BulletSharp.SolverModes.CacheFriendly; //todo test if helps with performance or not

if (configuration.Flags.HasFlag(PhysicsEngineFlags.ContinuosCollisionDetection))
if (configuration.Flags.HasFlag(PhysicsEngineFlags.ContinuousCollisionDetection))
{
CanCcd = true;
solverInfo.SolverMode |= BulletSharp.SolverModes.Use2FrictionDirections | BulletSharp.SolverModes.RandomizeOrder;

0 comments on commit 5bb43aa

Please sign in to comment.
You can’t perform that action at this time.