Skip to content

Commit

Permalink
[#822] CollisionFunctionType None added.
Browse files Browse the repository at this point in the history
  • Loading branch information
DjThunder committed Aug 13, 2024
1 parent b199805 commit 872b8f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static CollisionFunction imports(XmlReader parent)
{
return switch (type)
{
case NONE -> null;
case LINEAR -> new CollisionFunctionLinear(node.getDouble(A), node.getDouble(B));
default -> throw new LionEngineException(type);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
public enum CollisionFunctionType
{
/** No computation. */
NONE,
/** Linear computation. */
LINEAR;
}

0 comments on commit 872b8f0

Please sign in to comment.