initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
35
thirdparty/jolt_physics/Jolt/Physics/Collision/CollisionGroup.cpp
vendored
Normal file
35
thirdparty/jolt_physics/Jolt/Physics/Collision/CollisionGroup.cpp
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
|
||||
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include <Jolt/Jolt.h>
|
||||
|
||||
#include <Jolt/Physics/Collision/CollisionGroup.h>
|
||||
#include <Jolt/ObjectStream/TypeDeclarations.h>
|
||||
#include <Jolt/Core/StreamIn.h>
|
||||
#include <Jolt/Core/StreamOut.h>
|
||||
|
||||
JPH_NAMESPACE_BEGIN
|
||||
|
||||
JPH_IMPLEMENT_SERIALIZABLE_NON_VIRTUAL(CollisionGroup)
|
||||
{
|
||||
JPH_ADD_ATTRIBUTE(CollisionGroup, mGroupFilter)
|
||||
JPH_ADD_ATTRIBUTE(CollisionGroup, mGroupID)
|
||||
JPH_ADD_ATTRIBUTE(CollisionGroup, mSubGroupID)
|
||||
}
|
||||
|
||||
const CollisionGroup CollisionGroup::sInvalid;
|
||||
|
||||
void CollisionGroup::SaveBinaryState(StreamOut &inStream) const
|
||||
{
|
||||
inStream.Write(mGroupID);
|
||||
inStream.Write(mSubGroupID);
|
||||
}
|
||||
|
||||
void CollisionGroup::RestoreBinaryState(StreamIn &inStream)
|
||||
{
|
||||
inStream.Read(mGroupID);
|
||||
inStream.Read(mSubGroupID);
|
||||
}
|
||||
|
||||
JPH_NAMESPACE_END
|
Reference in New Issue
Block a user