Browse Source

Made the use of 'public' consistent across all classes that use the JPH_DECLARE_SERIALIZABLE_... macros

Fixes #1297
Jorrit Rouwe 1 year ago
parent
commit
e5d6234dc6
63 changed files with 73 additions and 68 deletions
  1. 2 2
      Jolt/Core/LinearCurve.h
  2. 1 1
      Jolt/Physics/Body/BodyCreationSettings.h
  3. 1 1
      Jolt/Physics/Body/MassProperties.h
  4. 1 1
      Jolt/Physics/Collision/CollisionGroup.h
  5. 1 1
      Jolt/Physics/Collision/GroupFilter.h
  6. 1 1
      Jolt/Physics/Collision/PhysicsMaterial.h
  7. 1 1
      Jolt/Physics/Collision/PhysicsMaterialSimple.h
  8. 1 1
      Jolt/Physics/Collision/Shape/BoxShape.h
  9. 1 0
      Jolt/Physics/Collision/Shape/CapsuleShape.h
  10. 1 1
      Jolt/Physics/Collision/Shape/CompoundShape.h
  11. 1 1
      Jolt/Physics/Collision/Shape/ConvexHullShape.h
  12. 1 1
      Jolt/Physics/Collision/Shape/ConvexShape.h
  13. 1 1
      Jolt/Physics/Collision/Shape/CylinderShape.h
  14. 1 0
      Jolt/Physics/Collision/Shape/DecoratedShape.h
  15. 1 1
      Jolt/Physics/Collision/Shape/EmptyShape.h
  16. 1 1
      Jolt/Physics/Collision/Shape/HeightFieldShape.h
  17. 1 1
      Jolt/Physics/Collision/Shape/MeshShape.h
  18. 1 1
      Jolt/Physics/Collision/Shape/MutableCompoundShape.h
  19. 1 1
      Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h
  20. 1 1
      Jolt/Physics/Collision/Shape/PlaneShape.h
  21. 1 1
      Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h
  22. 1 0
      Jolt/Physics/Collision/Shape/ScaledShape.h
  23. 1 1
      Jolt/Physics/Collision/Shape/Shape.h
  24. 1 1
      Jolt/Physics/Collision/Shape/SphereShape.h
  25. 1 1
      Jolt/Physics/Collision/Shape/StaticCompoundShape.h
  26. 1 0
      Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h
  27. 1 0
      Jolt/Physics/Collision/Shape/TaperedCylinderShape.h
  28. 1 1
      Jolt/Physics/Collision/Shape/TriangleShape.h
  29. 1 1
      Jolt/Physics/Constraints/ConeConstraint.h
  30. 1 1
      Jolt/Physics/Constraints/Constraint.h
  31. 1 1
      Jolt/Physics/Constraints/DistanceConstraint.h
  32. 1 1
      Jolt/Physics/Constraints/FixedConstraint.h
  33. 1 1
      Jolt/Physics/Constraints/GearConstraint.h
  34. 1 1
      Jolt/Physics/Constraints/HingeConstraint.h
  35. 1 1
      Jolt/Physics/Constraints/MotorSettings.h
  36. 1 1
      Jolt/Physics/Constraints/PathConstraint.h
  37. 1 1
      Jolt/Physics/Constraints/PathConstraintPath.h
  38. 1 1
      Jolt/Physics/Constraints/PathConstraintPathHermite.h
  39. 1 1
      Jolt/Physics/Constraints/PointConstraint.h
  40. 1 1
      Jolt/Physics/Constraints/PulleyConstraint.h
  41. 1 1
      Jolt/Physics/Constraints/RackAndPinionConstraint.h
  42. 1 1
      Jolt/Physics/Constraints/SixDOFConstraint.h
  43. 1 1
      Jolt/Physics/Constraints/SliderConstraint.h
  44. 1 1
      Jolt/Physics/Constraints/SpringSettings.h
  45. 1 1
      Jolt/Physics/Constraints/SwingTwistConstraint.h
  46. 1 1
      Jolt/Physics/Constraints/TwoBodyConstraint.h
  47. 2 2
      Jolt/Physics/PhysicsScene.h
  48. 3 3
      Jolt/Physics/Ragdoll/Ragdoll.h
  49. 1 1
      Jolt/Physics/SoftBody/SoftBodyCreationSettings.h
  50. 1 1
      Jolt/Physics/SoftBody/SoftBodySharedSettings.h
  51. 1 1
      Jolt/Physics/Vehicle/MotorcycleController.h
  52. 2 2
      Jolt/Physics/Vehicle/TrackedVehicleController.h
  53. 1 1
      Jolt/Physics/Vehicle/VehicleAntiRollBar.h
  54. 1 1
      Jolt/Physics/Vehicle/VehicleConstraint.h
  55. 1 1
      Jolt/Physics/Vehicle/VehicleController.h
  56. 1 1
      Jolt/Physics/Vehicle/VehicleDifferential.h
  57. 1 1
      Jolt/Physics/Vehicle/VehicleEngine.h
  58. 1 1
      Jolt/Physics/Vehicle/VehicleTrack.h
  59. 1 1
      Jolt/Physics/Vehicle/VehicleTransmission.h
  60. 1 1
      Jolt/Physics/Vehicle/Wheel.h
  61. 2 2
      Jolt/Physics/Vehicle/WheeledVehicleController.h
  62. 4 4
      Jolt/Skeleton/SkeletalAnimation.h
  63. 2 2
      Jolt/Skeleton/Skeleton.h

+ 2 - 2
Jolt/Core/LinearCurve.h

@@ -15,15 +15,15 @@ class StreamIn;
 // A set of points (x, y) that form a linear curve
 // A set of points (x, y) that form a linear curve
 class JPH_EXPORT LinearCurve
 class JPH_EXPORT LinearCurve
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, LinearCurve)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, LinearCurve)
 
 
+public:
 	/// A point on the curve
 	/// A point on the curve
 	class Point
 	class Point
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Point)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Point)
 
 
+	public:
 		float			mX = 0.0f;
 		float			mX = 0.0f;
 		float			mY = 0.0f;
 		float			mY = 0.0f;
 	};
 	};

+ 1 - 1
Jolt/Physics/Body/BodyCreationSettings.h

@@ -29,9 +29,9 @@ enum class EOverrideMassProperties : uint8
 /// Settings for constructing a rigid body
 /// Settings for constructing a rigid body
 class JPH_EXPORT BodyCreationSettings
 class JPH_EXPORT BodyCreationSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, BodyCreationSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, BodyCreationSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 							BodyCreationSettings() = default;
 							BodyCreationSettings() = default;
 							BodyCreationSettings(const ShapeSettings *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer) : mPosition(inPosition), mRotation(inRotation), mObjectLayer(inObjectLayer), mMotionType(inMotionType), mShape(inShape) { }
 							BodyCreationSettings(const ShapeSettings *inShape, RVec3Arg inPosition, QuatArg inRotation, EMotionType inMotionType, ObjectLayer inObjectLayer) : mPosition(inPosition), mRotation(inRotation), mObjectLayer(inObjectLayer), mMotionType(inMotionType), mShape(inShape) { }

+ 1 - 1
Jolt/Physics/Body/MassProperties.h

@@ -14,9 +14,9 @@ class StreamOut;
 /// Describes the mass and inertia properties of a body. Used during body construction only.
 /// Describes the mass and inertia properties of a body. Used during body construction only.
 class JPH_EXPORT MassProperties
 class JPH_EXPORT MassProperties
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, MassProperties)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, MassProperties)
 
 
+public:
 	/// Using eigendecomposition, decompose the inertia tensor into a diagonal matrix D and a right-handed rotation matrix R so that the inertia tensor is \f$R \: D \: R^{-1}\f$.
 	/// Using eigendecomposition, decompose the inertia tensor into a diagonal matrix D and a right-handed rotation matrix R so that the inertia tensor is \f$R \: D \: R^{-1}\f$.
 	/// @see https://en.wikipedia.org/wiki/Moment_of_inertia section 'Principal axes'
 	/// @see https://en.wikipedia.org/wiki/Moment_of_inertia section 'Principal axes'
 	/// @param outRotation The rotation matrix R
 	/// @param outRotation The rotation matrix R

+ 1 - 1
Jolt/Physics/Collision/CollisionGroup.h

@@ -18,9 +18,9 @@ class StreamOut;
 /// - Or if there's no filter for the first object, the second group filter says the objects can collide
 /// - Or if there's no filter for the first object, the second group filter says the objects can collide
 class JPH_EXPORT CollisionGroup
 class JPH_EXPORT CollisionGroup
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, CollisionGroup)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, CollisionGroup)
 
 
+public:
 	using GroupID			= uint32;
 	using GroupID			= uint32;
 	using SubGroupID		= uint32;
 	using SubGroupID		= uint32;
 
 

+ 1 - 1
Jolt/Physics/Collision/GroupFilter.h

@@ -16,9 +16,9 @@ class StreamOut;
 /// Abstract class that checks if two CollisionGroups collide
 /// Abstract class that checks if two CollisionGroups collide
 class JPH_EXPORT GroupFilter : public SerializableObject, public RefTarget<GroupFilter>
 class JPH_EXPORT GroupFilter : public SerializableObject, public RefTarget<GroupFilter>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, GroupFilter)
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, GroupFilter)
 
 
+public:
 	/// Virtual destructor
 	/// Virtual destructor
 	virtual						~GroupFilter() override = default;
 	virtual						~GroupFilter() override = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/PhysicsMaterial.h

@@ -21,9 +21,9 @@ class StreamOut;
 /// If you inherit from this material, don't forget to create a suitable default material in sDefault
 /// If you inherit from this material, don't forget to create a suitable default material in sDefault
 class JPH_EXPORT PhysicsMaterial : public SerializableObject, public RefTarget<PhysicsMaterial>
 class JPH_EXPORT PhysicsMaterial : public SerializableObject, public RefTarget<PhysicsMaterial>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PhysicsMaterial)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PhysicsMaterial)
 
 
+public:
 	/// Virtual destructor
 	/// Virtual destructor
 	virtual									~PhysicsMaterial() override = default;
 	virtual									~PhysicsMaterial() override = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/PhysicsMaterialSimple.h

@@ -11,9 +11,9 @@ JPH_NAMESPACE_BEGIN
 /// Sample implementation of PhysicsMaterial that just holds the needed properties directly
 /// Sample implementation of PhysicsMaterial that just holds the needed properties directly
 class JPH_EXPORT PhysicsMaterialSimple : public PhysicsMaterial
 class JPH_EXPORT PhysicsMaterialSimple : public PhysicsMaterial
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PhysicsMaterialSimple)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PhysicsMaterialSimple)
 
 
+public:
 	/// Constructor
 	/// Constructor
 											PhysicsMaterialSimple() = default;
 											PhysicsMaterialSimple() = default;
 											PhysicsMaterialSimple(const string_view &inName, ColorArg inColor) : mDebugName(inName), mDebugColor(inColor) { }
 											PhysicsMaterialSimple(const string_view &inName, ColorArg inColor) : mDebugName(inName), mDebugColor(inColor) { }

+ 1 - 1
Jolt/Physics/Collision/Shape/BoxShape.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Class that constructs a BoxShape
 /// Class that constructs a BoxShape
 class JPH_EXPORT BoxShapeSettings final : public ConvexShapeSettings
 class JPH_EXPORT BoxShapeSettings final : public ConvexShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, BoxShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, BoxShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							BoxShapeSettings() = default;
 							BoxShapeSettings() = default;
 
 

+ 1 - 0
Jolt/Physics/Collision/Shape/CapsuleShape.h

@@ -13,6 +13,7 @@ class JPH_EXPORT CapsuleShapeSettings final : public ConvexShapeSettings
 {
 {
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, CapsuleShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, CapsuleShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							CapsuleShapeSettings() = default;
 							CapsuleShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/CompoundShape.h

@@ -16,9 +16,9 @@ class OrientedBox;
 /// Base class settings to construct a compound shape
 /// Base class settings to construct a compound shape
 class JPH_EXPORT CompoundShapeSettings : public ShapeSettings
 class JPH_EXPORT CompoundShapeSettings : public ShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, CompoundShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, CompoundShapeSettings)
 
 
+public:
 	/// Constructor. Use AddShape to add the parts.
 	/// Constructor. Use AddShape to add the parts.
 									CompoundShapeSettings() = default;
 									CompoundShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/ConvexHullShape.h

@@ -16,9 +16,9 @@ JPH_NAMESPACE_BEGIN
 /// Class that constructs a ConvexHullShape
 /// Class that constructs a ConvexHullShape
 class JPH_EXPORT ConvexHullShapeSettings final : public ConvexShapeSettings
 class JPH_EXPORT ConvexHullShapeSettings final : public ConvexShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ConvexHullShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ConvexHullShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							ConvexHullShapeSettings() = default;
 							ConvexHullShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/ConvexShape.h

@@ -16,9 +16,9 @@ class CollideShapeSettings;
 /// Class that constructs a ConvexShape (abstract)
 /// Class that constructs a ConvexShape (abstract)
 class JPH_EXPORT ConvexShapeSettings : public ShapeSettings
 class JPH_EXPORT ConvexShapeSettings : public ShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, ConvexShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, ConvexShapeSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 									ConvexShapeSettings() = default;
 									ConvexShapeSettings() = default;
 	explicit						ConvexShapeSettings(const PhysicsMaterial *inMaterial)		: mMaterial(inMaterial) { }
 	explicit						ConvexShapeSettings(const PhysicsMaterial *inMaterial)		: mMaterial(inMaterial) { }

+ 1 - 1
Jolt/Physics/Collision/Shape/CylinderShape.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Class that constructs a CylinderShape
 /// Class that constructs a CylinderShape
 class JPH_EXPORT CylinderShapeSettings final : public ConvexShapeSettings
 class JPH_EXPORT CylinderShapeSettings final : public ConvexShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, CylinderShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, CylinderShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							CylinderShapeSettings() = default;
 							CylinderShapeSettings() = default;
 
 

+ 1 - 0
Jolt/Physics/Collision/Shape/DecoratedShape.h

@@ -13,6 +13,7 @@ class JPH_EXPORT DecoratedShapeSettings : public ShapeSettings
 {
 {
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, DecoratedShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, DecoratedShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 									DecoratedShapeSettings() = default;
 									DecoratedShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/EmptyShape.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Class that constructs an EmptyShape
 /// Class that constructs an EmptyShape
 class JPH_EXPORT EmptyShapeSettings final : public ShapeSettings
 class JPH_EXPORT EmptyShapeSettings final : public ShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, EmptyShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, EmptyShapeSettings)
 
 
+public:
 							EmptyShapeSettings() = default;
 							EmptyShapeSettings() = default;
 	explicit				EmptyShapeSettings(Vec3Arg inCenterOfMass) : mCenterOfMass(inCenterOfMass) { }
 	explicit				EmptyShapeSettings(Vec3Arg inCenterOfMass) : mCenterOfMass(inCenterOfMass) { }
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/HeightFieldShape.h

@@ -38,9 +38,9 @@ namespace HeightFieldShapeConstants
 /// Class that constructs a HeightFieldShape
 /// Class that constructs a HeightFieldShape
 class JPH_EXPORT HeightFieldShapeSettings final : public ShapeSettings
 class JPH_EXPORT HeightFieldShapeSettings final : public ShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, HeightFieldShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, HeightFieldShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 									HeightFieldShapeSettings() = default;
 									HeightFieldShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/MeshShape.h

@@ -21,9 +21,9 @@ class CollideShapeSettings;
 /// Class that constructs a MeshShape
 /// Class that constructs a MeshShape
 class JPH_EXPORT MeshShapeSettings final : public ShapeSettings
 class JPH_EXPORT MeshShapeSettings final : public ShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, MeshShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, MeshShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 									MeshShapeSettings() = default;
 									MeshShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/MutableCompoundShape.h

@@ -13,9 +13,9 @@ class CollideShapeSettings;
 /// Class that constructs a MutableCompoundShape.
 /// Class that constructs a MutableCompoundShape.
 class JPH_EXPORT MutableCompoundShapeSettings final : public CompoundShapeSettings
 class JPH_EXPORT MutableCompoundShapeSettings final : public CompoundShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, MutableCompoundShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, MutableCompoundShapeSettings)
 
 
+public:
 	// See: ShapeSettings
 	// See: ShapeSettings
 	virtual ShapeResult				Create() const override;
 	virtual ShapeResult				Create() const override;
 };
 };

+ 1 - 1
Jolt/Physics/Collision/Shape/OffsetCenterOfMassShape.h

@@ -13,9 +13,9 @@ class CollideShapeSettings;
 /// Class that constructs an OffsetCenterOfMassShape
 /// Class that constructs an OffsetCenterOfMassShape
 class JPH_EXPORT OffsetCenterOfMassShapeSettings final : public DecoratedShapeSettings
 class JPH_EXPORT OffsetCenterOfMassShapeSettings final : public DecoratedShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, OffsetCenterOfMassShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, OffsetCenterOfMassShapeSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 									OffsetCenterOfMassShapeSettings() = default;
 									OffsetCenterOfMassShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/PlaneShape.h

@@ -15,9 +15,9 @@ class CollideShapeSettings;
 /// Class that constructs a PlaneShape
 /// Class that constructs a PlaneShape
 class JPH_EXPORT PlaneShapeSettings final : public ShapeSettings
 class JPH_EXPORT PlaneShapeSettings final : public ShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PlaneShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PlaneShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 									PlaneShapeSettings() = default;
 									PlaneShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h

@@ -14,9 +14,9 @@ class CollideShapeSettings;
 /// Class that constructs a RotatedTranslatedShape
 /// Class that constructs a RotatedTranslatedShape
 class JPH_EXPORT RotatedTranslatedShapeSettings final : public DecoratedShapeSettings
 class JPH_EXPORT RotatedTranslatedShapeSettings final : public DecoratedShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, RotatedTranslatedShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, RotatedTranslatedShapeSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 									RotatedTranslatedShapeSettings() = default;
 									RotatedTranslatedShapeSettings() = default;
 
 

+ 1 - 0
Jolt/Physics/Collision/Shape/ScaledShape.h

@@ -17,6 +17,7 @@ class JPH_EXPORT ScaledShapeSettings final : public DecoratedShapeSettings
 {
 {
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ScaledShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ScaledShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 									ScaledShapeSettings() = default;
 									ScaledShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/Shape.h

@@ -145,9 +145,9 @@ static_assert(size(sSubShapeTypeNames) == NumSubShapeTypes);
 /// data.
 /// data.
 class JPH_EXPORT ShapeSettings : public SerializableObject, public RefTarget<ShapeSettings>
 class JPH_EXPORT ShapeSettings : public SerializableObject, public RefTarget<ShapeSettings>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, ShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, ShapeSettings)
 
 
+public:
 	using ShapeResult = Result<Ref<Shape>>;
 	using ShapeResult = Result<Ref<Shape>>;
 
 
 	/// Create a shape according to the settings specified by this object.
 	/// Create a shape according to the settings specified by this object.

+ 1 - 1
Jolt/Physics/Collision/Shape/SphereShape.h

@@ -11,9 +11,9 @@ JPH_NAMESPACE_BEGIN
 /// Class that constructs a SphereShape
 /// Class that constructs a SphereShape
 class JPH_EXPORT SphereShapeSettings final : public ConvexShapeSettings
 class JPH_EXPORT SphereShapeSettings final : public ConvexShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SphereShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SphereShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							SphereShapeSettings() = default;
 							SphereShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/StaticCompoundShape.h

@@ -16,9 +16,9 @@ class TempAllocator;
 /// Class that constructs a StaticCompoundShape. Note that if you only want a compound of 1 shape, use a RotatedTranslatedShape instead.
 /// Class that constructs a StaticCompoundShape. Note that if you only want a compound of 1 shape, use a RotatedTranslatedShape instead.
 class JPH_EXPORT StaticCompoundShapeSettings final : public CompoundShapeSettings
 class JPH_EXPORT StaticCompoundShapeSettings final : public CompoundShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, StaticCompoundShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, StaticCompoundShapeSettings)
 
 
+public:
 	// See: ShapeSettings
 	// See: ShapeSettings
 	virtual ShapeResult				Create() const override;
 	virtual ShapeResult				Create() const override;
 
 

+ 1 - 0
Jolt/Physics/Collision/Shape/TaperedCapsuleShape.h

@@ -16,6 +16,7 @@ class JPH_EXPORT TaperedCapsuleShapeSettings final : public ConvexShapeSettings
 {
 {
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TaperedCapsuleShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TaperedCapsuleShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							TaperedCapsuleShapeSettings() = default;
 							TaperedCapsuleShapeSettings() = default;
 
 

+ 1 - 0
Jolt/Physics/Collision/Shape/TaperedCylinderShape.h

@@ -14,6 +14,7 @@ class JPH_EXPORT TaperedCylinderShapeSettings final : public ConvexShapeSettings
 {
 {
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TaperedCylinderShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TaperedCylinderShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							TaperedCylinderShapeSettings() = default;
 							TaperedCylinderShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Collision/Shape/TriangleShape.h

@@ -11,9 +11,9 @@ JPH_NAMESPACE_BEGIN
 /// Class that constructs a TriangleShape
 /// Class that constructs a TriangleShape
 class JPH_EXPORT TriangleShapeSettings final : public ConvexShapeSettings
 class JPH_EXPORT TriangleShapeSettings final : public ConvexShapeSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TriangleShapeSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TriangleShapeSettings)
 
 
+public:
 	/// Default constructor for deserialization
 	/// Default constructor for deserialization
 							TriangleShapeSettings() = default;
 							TriangleShapeSettings() = default;
 
 

+ 1 - 1
Jolt/Physics/Constraints/ConeConstraint.h

@@ -13,9 +13,9 @@ JPH_NAMESPACE_BEGIN
 /// Cone constraint settings, used to create a cone constraint
 /// Cone constraint settings, used to create a cone constraint
 class JPH_EXPORT ConeConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT ConeConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ConeConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ConeConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/Constraint.h

@@ -63,9 +63,9 @@ enum class EConstraintSpace
 /// Class used to store the configuration of a constraint. Allows run-time creation of constraints.
 /// Class used to store the configuration of a constraint. Allows run-time creation of constraints.
 class JPH_EXPORT ConstraintSettings : public SerializableObject, public RefTarget<ConstraintSettings>
 class JPH_EXPORT ConstraintSettings : public SerializableObject, public RefTarget<ConstraintSettings>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, ConstraintSettings)
 
 
+public:
 	using ConstraintResult = Result<Ref<ConstraintSettings>>;
 	using ConstraintResult = Result<Ref<ConstraintSettings>>;
 
 
 	/// Saves the contents of the constraint settings in binary form to inStream.
 	/// Saves the contents of the constraint settings in binary form to inStream.

+ 1 - 1
Jolt/Physics/Constraints/DistanceConstraint.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Distance constraint settings, used to create a distance constraint
 /// Distance constraint settings, used to create a distance constraint
 class JPH_EXPORT DistanceConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT DistanceConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, DistanceConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, DistanceConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/FixedConstraint.h

@@ -13,9 +13,9 @@ JPH_NAMESPACE_BEGIN
 /// Fixed constraint settings, used to create a fixed constraint
 /// Fixed constraint settings, used to create a fixed constraint
 class JPH_EXPORT FixedConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT FixedConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, FixedConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, FixedConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/GearConstraint.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Gear constraint settings
 /// Gear constraint settings
 class JPH_EXPORT GearConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT GearConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, GearConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, GearConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/HingeConstraint.h

@@ -15,9 +15,9 @@ JPH_NAMESPACE_BEGIN
 /// Hinge constraint settings, used to create a hinge constraint
 /// Hinge constraint settings, used to create a hinge constraint
 class JPH_EXPORT HingeConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT HingeConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, HingeConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, HingeConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/MotorSettings.h

@@ -24,9 +24,9 @@ enum class EMotorState
 /// See the main page of the API documentation for more information on how to configure a motor.
 /// See the main page of the API documentation for more information on how to configure a motor.
 class JPH_EXPORT MotorSettings
 class JPH_EXPORT MotorSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, MotorSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, MotorSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 							MotorSettings() = default;
 							MotorSettings() = default;
 							MotorSettings(const MotorSettings &) = default;
 							MotorSettings(const MotorSettings &) = default;

+ 1 - 1
Jolt/Physics/Constraints/PathConstraint.h

@@ -35,9 +35,9 @@ enum class EPathRotationConstraintType
 /// The reason for all this is that the constraint acts like a slider constraint with the sliding axis being the tangent vector (the assumption here is that delta time will be small enough so that the path is linear for that delta time).
 /// The reason for all this is that the constraint acts like a slider constraint with the sliding axis being the tangent vector (the assumption here is that delta time will be small enough so that the path is linear for that delta time).
 class JPH_EXPORT PathConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT PathConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PathConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PathConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void					SaveBinaryState(StreamOut &inStream) const override;
 	virtual void					SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/PathConstraintPath.h

@@ -19,9 +19,9 @@ class DebugRenderer;
 /// The path for a path constraint. It allows attaching two bodies to each other while giving the second body the freedom to move along a path relative to the first.
 /// The path for a path constraint. It allows attaching two bodies to each other while giving the second body the freedom to move along a path relative to the first.
 class JPH_EXPORT PathConstraintPath : public SerializableObject, public RefTarget<PathConstraintPath>
 class JPH_EXPORT PathConstraintPath : public SerializableObject, public RefTarget<PathConstraintPath>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, PathConstraintPath)
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, PathConstraintPath)
 
 
+public:
 	using PathResult = Result<Ref<PathConstraintPath>>;
 	using PathResult = Result<Ref<PathConstraintPath>>;
 
 
 	/// Virtual destructor to ensure that derived types get their destructors called
 	/// Virtual destructor to ensure that derived types get their destructors called

+ 1 - 1
Jolt/Physics/Constraints/PathConstraintPathHermite.h

@@ -11,9 +11,9 @@ JPH_NAMESPACE_BEGIN
 /// A path that follows a Hermite spline
 /// A path that follows a Hermite spline
 class JPH_EXPORT PathConstraintPathHermite final : public PathConstraintPath
 class JPH_EXPORT PathConstraintPathHermite final : public PathConstraintPath
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PathConstraintPathHermite)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PathConstraintPathHermite)
 
 
+public:
 	// See PathConstraintPath::GetPathMaxFraction
 	// See PathConstraintPath::GetPathMaxFraction
 	virtual float		GetPathMaxFraction() const override									{ return float(IsLooping()? mPoints.size() : mPoints.size() - 1); }
 	virtual float		GetPathMaxFraction() const override									{ return float(IsLooping()? mPoints.size() : mPoints.size() - 1); }
 
 

+ 1 - 1
Jolt/Physics/Constraints/PointConstraint.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Point constraint settings, used to create a point constraint
 /// Point constraint settings, used to create a point constraint
 class JPH_EXPORT PointConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT PointConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PointConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PointConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/PulleyConstraint.h

@@ -17,9 +17,9 @@ JPH_NAMESPACE_BEGIN
 /// MinDistance <= Length1 + Ratio * Length2 <= MaxDistance
 /// MinDistance <= Length1 + Ratio * Length2 <= MaxDistance
 class JPH_EXPORT PulleyConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT PulleyConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PulleyConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, PulleyConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/RackAndPinionConstraint.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Rack and pinion constraint (slider & gear) settings
 /// Rack and pinion constraint (slider & gear) settings
 class JPH_EXPORT RackAndPinionConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT RackAndPinionConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, RackAndPinionConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, RackAndPinionConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/SixDOFConstraint.h

@@ -17,9 +17,9 @@ JPH_NAMESPACE_BEGIN
 /// 6 Degree Of Freedom Constraint setup structure. Allows control over each of the 6 degrees of freedom.
 /// 6 Degree Of Freedom Constraint setup structure. Allows control over each of the 6 degrees of freedom.
 class JPH_EXPORT SixDOFConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT SixDOFConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SixDOFConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SixDOFConstraintSettings)
 
 
+public:
 	/// Constraint is split up into translation/rotation around X, Y and Z axis.
 	/// Constraint is split up into translation/rotation around X, Y and Z axis.
 	enum EAxis
 	enum EAxis
 	{
 	{

+ 1 - 1
Jolt/Physics/Constraints/SliderConstraint.h

@@ -15,9 +15,9 @@ JPH_NAMESPACE_BEGIN
 /// Slider constraint settings, used to create a slider constraint
 /// Slider constraint settings, used to create a slider constraint
 class JPH_EXPORT SliderConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT SliderConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SliderConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SliderConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/SpringSettings.h

@@ -21,9 +21,9 @@ enum class ESpringMode : uint8
 /// Settings for a linear or angular spring
 /// Settings for a linear or angular spring
 class JPH_EXPORT SpringSettings
 class JPH_EXPORT SpringSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SpringSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SpringSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 								SpringSettings() = default;
 								SpringSettings() = default;
 								SpringSettings(const SpringSettings &) = default;
 								SpringSettings(const SpringSettings &) = default;

+ 1 - 1
Jolt/Physics/Constraints/SwingTwistConstraint.h

@@ -19,9 +19,9 @@ JPH_NAMESPACE_BEGIN
 /// @image html Docs/SwingTwistConstraint.png
 /// @image html Docs/SwingTwistConstraint.png
 class JPH_EXPORT SwingTwistConstraintSettings final : public TwoBodyConstraintSettings
 class JPH_EXPORT SwingTwistConstraintSettings final : public TwoBodyConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SwingTwistConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, SwingTwistConstraintSettings)
 
 
+public:
 	// See: ConstraintSettings::SaveBinaryState
 	// See: ConstraintSettings::SaveBinaryState
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Constraints/TwoBodyConstraint.h

@@ -14,9 +14,9 @@ class TwoBodyConstraint;
 /// Base class for settings for all constraints that involve 2 bodies
 /// Base class for settings for all constraints that involve 2 bodies
 class JPH_EXPORT TwoBodyConstraintSettings : public ConstraintSettings
 class JPH_EXPORT TwoBodyConstraintSettings : public ConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, TwoBodyConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, TwoBodyConstraintSettings)
 
 
+public:
 	/// Create an instance of this constraint
 	/// Create an instance of this constraint
 	/// You can use Body::sFixedToWorld for inBody1 if you want to attach inBody2 to the world
 	/// You can use Body::sFixedToWorld for inBody1 if you want to attach inBody2 to the world
 	virtual TwoBodyConstraint *	Create(Body &inBody1, Body &inBody2) const = 0;
 	virtual TwoBodyConstraint *	Create(Body &inBody1, Body &inBody2) const = 0;

+ 2 - 2
Jolt/Physics/PhysicsScene.h

@@ -16,9 +16,9 @@ class PhysicsSystem;
 /// Contains the creation settings of a set of bodies
 /// Contains the creation settings of a set of bodies
 class JPH_EXPORT PhysicsScene : public RefTarget<PhysicsScene>
 class JPH_EXPORT PhysicsScene : public RefTarget<PhysicsScene>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, PhysicsScene)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, PhysicsScene)
 
 
+public:
 	/// Add a body to the scene
 	/// Add a body to the scene
 	void									AddBody(const BodyCreationSettings &inBody);
 	void									AddBody(const BodyCreationSettings &inBody);
 
 
@@ -44,9 +44,9 @@ public:
 	/// A constraint and how it is connected to the bodies in the scene
 	/// A constraint and how it is connected to the bodies in the scene
 	class ConnectedConstraint
 	class ConnectedConstraint
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, ConnectedConstraint)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, ConnectedConstraint)
 
 
+	public:
 											ConnectedConstraint() = default;
 											ConnectedConstraint() = default;
 											ConnectedConstraint(const TwoBodyConstraintSettings *inSettings, uint inBody1, uint inBody2) : mSettings(inSettings), mBody1(inBody1), mBody2(inBody2) { }
 											ConnectedConstraint(const TwoBodyConstraintSettings *inSettings, uint inBody1, uint inBody2) : mSettings(inSettings), mBody1(inBody1), mBody2(inBody2) { }
 
 

+ 3 - 3
Jolt/Physics/Ragdoll/Ragdoll.h

@@ -20,9 +20,9 @@ class PhysicsSystem;
 /// Contains the structure of a ragdoll
 /// Contains the structure of a ragdoll
 class JPH_EXPORT RagdollSettings : public RefTarget<RagdollSettings>
 class JPH_EXPORT RagdollSettings : public RefTarget<RagdollSettings>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, RagdollSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, RagdollSettings)
 
 
+public:
 	/// Stabilize the constraints of the ragdoll
 	/// Stabilize the constraints of the ragdoll
 	/// @return True on success, false on failure.
 	/// @return True on success, false on failure.
 	bool								Stabilize();
 	bool								Stabilize();
@@ -84,9 +84,9 @@ public:
 	/// A single rigid body sub part of the ragdoll
 	/// A single rigid body sub part of the ragdoll
 	class Part : public BodyCreationSettings
 	class Part : public BodyCreationSettings
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Part)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Part)
 
 
+	public:
 		Ref<TwoBodyConstraintSettings>	mToParent;
 		Ref<TwoBodyConstraintSettings>	mToParent;
 	};
 	};
 
 
@@ -96,9 +96,9 @@ public:
 	/// A constraint that connects two bodies in a ragdoll (for non parent child related constraints)
 	/// A constraint that connects two bodies in a ragdoll (for non parent child related constraints)
 	class AdditionalConstraint
 	class AdditionalConstraint
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, AdditionalConstraint)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, AdditionalConstraint)
 
 
+	public:
 		/// Constructors
 		/// Constructors
 										AdditionalConstraint() = default;
 										AdditionalConstraint() = default;
 										AdditionalConstraint(int inBodyIdx1, int inBodyIdx2, TwoBodyConstraintSettings *inConstraint) : mBodyIdx { inBodyIdx1, inBodyIdx2 }, mConstraint(inConstraint) { }
 										AdditionalConstraint(int inBodyIdx1, int inBodyIdx2, TwoBodyConstraintSettings *inConstraint) : mBodyIdx { inBodyIdx1, inBodyIdx2 }, mConstraint(inConstraint) { }

+ 1 - 1
Jolt/Physics/SoftBody/SoftBodyCreationSettings.h

@@ -16,9 +16,9 @@ JPH_NAMESPACE_BEGIN
 /// Note: Soft bodies are still in development and come with several caveats. Read the Architecture and API documentation for more information!
 /// Note: Soft bodies are still in development and come with several caveats. Read the Architecture and API documentation for more information!
 class JPH_EXPORT SoftBodyCreationSettings
 class JPH_EXPORT SoftBodyCreationSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SoftBodyCreationSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SoftBodyCreationSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 						SoftBodyCreationSettings() = default;
 						SoftBodyCreationSettings() = default;
 						SoftBodyCreationSettings(const SoftBodySharedSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, ObjectLayer inObjectLayer) : mSettings(inSettings), mPosition(inPosition), mRotation(inRotation), mObjectLayer(inObjectLayer) { }
 						SoftBodyCreationSettings(const SoftBodySharedSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, ObjectLayer inObjectLayer) : mSettings(inSettings), mPosition(inPosition), mRotation(inRotation), mObjectLayer(inObjectLayer) { }

+ 1 - 1
Jolt/Physics/SoftBody/SoftBodySharedSettings.h

@@ -14,9 +14,9 @@ JPH_NAMESPACE_BEGIN
 /// It is used during the simulation and can be shared between multiple soft bodies.
 /// It is used during the simulation and can be shared between multiple soft bodies.
 class JPH_EXPORT SoftBodySharedSettings : public RefTarget<SoftBodySharedSettings>
 class JPH_EXPORT SoftBodySharedSettings : public RefTarget<SoftBodySharedSettings>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SoftBodySharedSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SoftBodySharedSettings)
 
 
+public:
 	/// Which type of bend constraint should be created
 	/// Which type of bend constraint should be created
 	enum class EBendType
 	enum class EBendType
 	{
 	{

+ 1 - 1
Jolt/Physics/Vehicle/MotorcycleController.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 /// Note: The motor cycle controller is still in development and may need a lot of tweaks/hacks to work properly!
 /// Note: The motor cycle controller is still in development and may need a lot of tweaks/hacks to work properly!
 class JPH_EXPORT MotorcycleControllerSettings : public WheeledVehicleControllerSettings
 class JPH_EXPORT MotorcycleControllerSettings : public WheeledVehicleControllerSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, MotorcycleControllerSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, MotorcycleControllerSettings)
 
 
+public:
 	// See: VehicleControllerSettings
 	// See: VehicleControllerSettings
 	virtual VehicleController *	ConstructController(VehicleConstraint &inConstraint) const override;
 	virtual VehicleController *	ConstructController(VehicleConstraint &inConstraint) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;

+ 2 - 2
Jolt/Physics/Vehicle/TrackedVehicleController.h

@@ -17,9 +17,9 @@ class PhysicsSystem;
 /// WheelSettings object specifically for TrackedVehicleController
 /// WheelSettings object specifically for TrackedVehicleController
 class JPH_EXPORT WheelSettingsTV : public WheelSettings
 class JPH_EXPORT WheelSettingsTV : public WheelSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheelSettingsTV)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheelSettingsTV)
 
 
+public:
 	// See: WheelSettings
 	// See: WheelSettings
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				RestoreBinaryState(StreamIn &inStream) override;
 	virtual void				RestoreBinaryState(StreamIn &inStream) override;
@@ -58,9 +58,9 @@ public:
 /// Note to avoid issues with very heavy objects vs very light objects the mass of the tank should be a lot lower (say 10x) than that of a real tank. That means that the engine/brake torque is also 10x less.
 /// Note to avoid issues with very heavy objects vs very light objects the mass of the tank should be a lot lower (say 10x) than that of a real tank. That means that the engine/brake torque is also 10x less.
 class JPH_EXPORT TrackedVehicleControllerSettings : public VehicleControllerSettings
 class JPH_EXPORT TrackedVehicleControllerSettings : public VehicleControllerSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TrackedVehicleControllerSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, TrackedVehicleControllerSettings)
 
 
+public:
 	// Constructor
 	// Constructor
 								TrackedVehicleControllerSettings();
 								TrackedVehicleControllerSettings();
 
 

+ 1 - 1
Jolt/Physics/Vehicle/VehicleAntiRollBar.h

@@ -14,9 +14,9 @@ JPH_NAMESPACE_BEGIN
 /// See: https://en.wikipedia.org/wiki/Anti-roll_bar
 /// See: https://en.wikipedia.org/wiki/Anti-roll_bar
 class JPH_EXPORT VehicleAntiRollBar
 class JPH_EXPORT VehicleAntiRollBar
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleAntiRollBar)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleAntiRollBar)
 
 
+public:
 	/// Saves the contents in binary form to inStream.
 	/// Saves the contents in binary form to inStream.
 	void					SaveBinaryState(StreamOut &inStream) const;
 	void					SaveBinaryState(StreamOut &inStream) const;
 
 

+ 1 - 1
Jolt/Physics/Vehicle/VehicleConstraint.h

@@ -22,9 +22,9 @@ class PhysicsSystem;
 /// See: https://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
 /// See: https://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
 class JPH_EXPORT VehicleConstraintSettings : public ConstraintSettings
 class JPH_EXPORT VehicleConstraintSettings : public ConstraintSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, VehicleConstraintSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, VehicleConstraintSettings)
 
 
+public:
 	/// Saves the contents of the constraint settings in binary form to inStream.
 	/// Saves the contents of the constraint settings in binary form to inStream.
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 
 

+ 1 - 1
Jolt/Physics/Vehicle/VehicleController.h

@@ -23,9 +23,9 @@ class StateRecorder;
 /// Basic settings object for interface that controls acceleration / deceleration of the vehicle
 /// Basic settings object for interface that controls acceleration / deceleration of the vehicle
 class JPH_EXPORT VehicleControllerSettings : public SerializableObject, public RefTarget<VehicleControllerSettings>
 class JPH_EXPORT VehicleControllerSettings : public SerializableObject, public RefTarget<VehicleControllerSettings>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, VehicleControllerSettings)
 	JPH_DECLARE_SERIALIZABLE_ABSTRACT(JPH_EXPORT, VehicleControllerSettings)
 
 
+public:
 	/// Saves the contents of the controller settings in binary form to inStream.
 	/// Saves the contents of the controller settings in binary form to inStream.
 	virtual void				SaveBinaryState(StreamOut &inStream) const = 0;
 	virtual void				SaveBinaryState(StreamOut &inStream) const = 0;
 
 

+ 1 - 1
Jolt/Physics/Vehicle/VehicleDifferential.h

@@ -12,9 +12,9 @@ JPH_NAMESPACE_BEGIN
 
 
 class JPH_EXPORT VehicleDifferentialSettings
 class JPH_EXPORT VehicleDifferentialSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleDifferentialSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleDifferentialSettings)
 
 
+public:
 	/// Saves the contents in binary form to inStream.
 	/// Saves the contents in binary form to inStream.
 	void					SaveBinaryState(StreamOut &inStream) const;
 	void					SaveBinaryState(StreamOut &inStream) const;
 
 

+ 1 - 1
Jolt/Physics/Vehicle/VehicleEngine.h

@@ -19,9 +19,9 @@ JPH_NAMESPACE_BEGIN
 /// Generic properties for a vehicle engine
 /// Generic properties for a vehicle engine
 class JPH_EXPORT VehicleEngineSettings
 class JPH_EXPORT VehicleEngineSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleEngineSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleEngineSettings)
 
 
+public:
 	/// Constructor
 	/// Constructor
 							VehicleEngineSettings();
 							VehicleEngineSettings();
 
 

+ 1 - 1
Jolt/Physics/Vehicle/VehicleTrack.h

@@ -23,9 +23,9 @@ enum class ETrackSide : uint
 /// Generic properties for tank tracks
 /// Generic properties for tank tracks
 class JPH_EXPORT VehicleTrackSettings
 class JPH_EXPORT VehicleTrackSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleTrackSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleTrackSettings)
 
 
+public:
 	/// Saves the contents in binary form to inStream.
 	/// Saves the contents in binary form to inStream.
 	void					SaveBinaryState(StreamOut &inStream) const;
 	void					SaveBinaryState(StreamOut &inStream) const;
 
 

+ 1 - 1
Jolt/Physics/Vehicle/VehicleTransmission.h

@@ -21,9 +21,9 @@ enum class ETransmissionMode : uint8
 /// Configuration for the transmission of a vehicle (gear box)
 /// Configuration for the transmission of a vehicle (gear box)
 class JPH_EXPORT VehicleTransmissionSettings
 class JPH_EXPORT VehicleTransmissionSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleTransmissionSettings)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, VehicleTransmissionSettings)
 
 
+public:
 	/// Saves the contents in binary form to inStream.
 	/// Saves the contents in binary form to inStream.
 	void					SaveBinaryState(StreamOut &inStream) const;
 	void					SaveBinaryState(StreamOut &inStream) const;
 
 

+ 1 - 1
Jolt/Physics/Vehicle/Wheel.h

@@ -17,9 +17,9 @@ class VehicleConstraint;
 /// Base class for wheel settings, each VehicleController can implement a derived class of this
 /// Base class for wheel settings, each VehicleController can implement a derived class of this
 class JPH_EXPORT WheelSettings : public SerializableObject, public RefTarget<WheelSettings>
 class JPH_EXPORT WheelSettings : public SerializableObject, public RefTarget<WheelSettings>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheelSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheelSettings)
 
 
+public:
 	/// Saves the contents in binary form to inStream.
 	/// Saves the contents in binary form to inStream.
 	virtual void			SaveBinaryState(StreamOut &inStream) const;
 	virtual void			SaveBinaryState(StreamOut &inStream) const;
 
 

+ 2 - 2
Jolt/Physics/Vehicle/WheeledVehicleController.h

@@ -18,9 +18,9 @@ class PhysicsSystem;
 /// WheelSettings object specifically for WheeledVehicleController
 /// WheelSettings object specifically for WheeledVehicleController
 class JPH_EXPORT WheelSettingsWV : public WheelSettings
 class JPH_EXPORT WheelSettingsWV : public WheelSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheelSettingsWV)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheelSettingsWV)
 
 
+public:
 	/// Constructor
 	/// Constructor
 								WheelSettingsWV();
 								WheelSettingsWV();
 
 
@@ -71,9 +71,9 @@ public:
 /// See: https://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
 /// See: https://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html
 class JPH_EXPORT WheeledVehicleControllerSettings : public VehicleControllerSettings
 class JPH_EXPORT WheeledVehicleControllerSettings : public VehicleControllerSettings
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheeledVehicleControllerSettings)
 	JPH_DECLARE_SERIALIZABLE_VIRTUAL(JPH_EXPORT, WheeledVehicleControllerSettings)
 
 
+public:
 	// See: VehicleControllerSettings
 	// See: VehicleControllerSettings
 	virtual VehicleController *	ConstructController(VehicleConstraint &inConstraint) const override;
 	virtual VehicleController *	ConstructController(VehicleConstraint &inConstraint) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;
 	virtual void				SaveBinaryState(StreamOut &inStream) const override;

+ 4 - 4
Jolt/Skeleton/SkeletalAnimation.h

@@ -14,15 +14,15 @@ class SkeletonPose;
 /// Resource for a skinned animation
 /// Resource for a skinned animation
 class JPH_EXPORT SkeletalAnimation : public RefTarget<SkeletalAnimation>
 class JPH_EXPORT SkeletalAnimation : public RefTarget<SkeletalAnimation>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SkeletalAnimation)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, SkeletalAnimation)
 
 
+public:
 	/// Contains the current state of a joint, a local space transformation relative to its parent joint
 	/// Contains the current state of a joint, a local space transformation relative to its parent joint
 	class JointState
 	class JointState
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, JointState)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, JointState)
 
 
+	public:
 		/// Convert from a local space matrix
 		/// Convert from a local space matrix
 		void							FromMatrix(Mat44Arg inMatrix);
 		void							FromMatrix(Mat44Arg inMatrix);
 
 
@@ -36,9 +36,9 @@ public:
 	/// Contains the state of a single joint at a particular time
 	/// Contains the state of a single joint at a particular time
 	class Keyframe : public JointState
 	class Keyframe : public JointState
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Keyframe)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Keyframe)
 
 
+	public:
 		float							mTime = 0.0f;										///< Time of keyframe in seconds
 		float							mTime = 0.0f;										///< Time of keyframe in seconds
 	};
 	};
 
 
@@ -47,9 +47,9 @@ public:
 	/// Contains the animation for a single joint
 	/// Contains the animation for a single joint
 	class AnimatedJoint
 	class AnimatedJoint
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, AnimatedJoint)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, AnimatedJoint)
 
 
+	public:
 		String							mJointName;											///< Name of the joint
 		String							mJointName;											///< Name of the joint
 		KeyframeVector					mKeyframes;											///< List of keyframes over time
 		KeyframeVector					mKeyframes;											///< List of keyframes over time
 	};
 	};

+ 2 - 2
Jolt/Skeleton/Skeleton.h

@@ -16,17 +16,17 @@ class StreamOut;
 /// Resource that contains the joint hierarchy for a skeleton
 /// Resource that contains the joint hierarchy for a skeleton
 class JPH_EXPORT Skeleton : public RefTarget<Skeleton>
 class JPH_EXPORT Skeleton : public RefTarget<Skeleton>
 {
 {
-public:
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Skeleton)
 	JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Skeleton)
 
 
+public:
 	using SkeletonResult = Result<Ref<Skeleton>>;
 	using SkeletonResult = Result<Ref<Skeleton>>;
 
 
 	/// Declare internal structure for a joint
 	/// Declare internal structure for a joint
 	class Joint
 	class Joint
 	{
 	{
-	public:
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Joint)
 		JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(JPH_EXPORT, Joint)
 
 
+	public:
 							Joint() = default;
 							Joint() = default;
 							Joint(const string_view &inName, const string_view &inParentName, int inParentJointIndex) : mName(inName), mParentName(inParentName), mParentJointIndex(inParentJointIndex) { }
 							Joint(const string_view &inName, const string_view &inParentName, int inParentJointIndex) : mName(inName), mParentName(inParentName), mParentJointIndex(inParentJointIndex) { }