Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/jolt_physics/Jolt/Physics/PhysicsUpdateContext.cpp
9906 views
1
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
3
// SPDX-License-Identifier: MIT
4
5
#include <Jolt/Jolt.h>
6
7
#include <Jolt/Physics/PhysicsUpdateContext.h>
8
9
JPH_NAMESPACE_BEGIN
10
11
PhysicsUpdateContext::PhysicsUpdateContext(TempAllocator &inTempAllocator) :
12
mTempAllocator(&inTempAllocator),
13
mSteps(inTempAllocator)
14
{
15
}
16
17
PhysicsUpdateContext::~PhysicsUpdateContext()
18
{
19
JPH_ASSERT(mBodyPairs == nullptr);
20
JPH_ASSERT(mActiveConstraints == nullptr);
21
}
22
23
JPH_NAMESPACE_END
24
25