Skip to content

Commit

Permalink
- Fixed a number of missing '#pragma once' statements in headers
Browse files Browse the repository at this point in the history
- Added BroadPhaseLayer::GetValue for JoltPhysics.js
  • Loading branch information
jrouwe committed Dec 20, 2023
1 parent e2041e3 commit 70c6f2d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ class BroadPhaseLayer
return mValue;
}

JPH_INLINE Type GetValue() const
{
return mValue;
}

private:
Type mValue;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// SPDX-FileCopyrightText: 2023 Jorrit Rouwe
// SPDX-License-Identifier: MIT

#pragma once

#include <Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h>

JPH_NAMESPACE_BEGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// SPDX-FileCopyrightText: 2023 Jorrit Rouwe
// SPDX-License-Identifier: MIT

#pragma once

#include <Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h>

JPH_NAMESPACE_BEGIN
Expand Down
2 changes: 2 additions & 0 deletions Jolt/Physics/Collision/ObjectLayerPairFilterTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// SPDX-FileCopyrightText: 2023 Jorrit Rouwe
// SPDX-License-Identifier: MIT

#pragma once

#include <Jolt/Physics/Collision/ObjectLayer.h>

JPH_NAMESPACE_BEGIN
Expand Down

0 comments on commit 70c6f2d

Please sign in to comment.