Ajout de Jolt Physics + 1ere version des factory entitecomposants - camera, transform, rigidbody, collider, renderer

This commit is contained in:
Tom Ray
2026-03-22 00:28:03 +01:00
parent 6695d46bcd
commit 48348936a8
1147 changed files with 214331 additions and 353 deletions

View File

@@ -0,0 +1,33 @@
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
// SPDX-License-Identifier: MIT
#include <Jolt/Jolt.h>
#include <Jolt/Physics/Vehicle/VehicleAntiRollBar.h>
#include <Jolt/ObjectStream/TypeDeclarations.h>
JPH_NAMESPACE_BEGIN
JPH_IMPLEMENT_SERIALIZABLE_NON_VIRTUAL(VehicleAntiRollBar)
{
JPH_ADD_ATTRIBUTE(VehicleAntiRollBar, mLeftWheel)
JPH_ADD_ATTRIBUTE(VehicleAntiRollBar, mRightWheel)
JPH_ADD_ATTRIBUTE(VehicleAntiRollBar, mStiffness)
}
void VehicleAntiRollBar::SaveBinaryState(StreamOut &inStream) const
{
inStream.Write(mLeftWheel);
inStream.Write(mRightWheel);
inStream.Write(mStiffness);
}
void VehicleAntiRollBar::RestoreBinaryState(StreamIn &inStream)
{
inStream.Read(mLeftWheel);
inStream.Read(mRightWheel);
inStream.Read(mStiffness);
}
JPH_NAMESPACE_END