0.2.0-dev Download ZIP
25 lines ·558 B Raw
| 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 | /// @cond INTERNAL |
| 12 | PhysicsUpdateContext::PhysicsUpdateContext(TempAllocator &inTempAllocator) : |
| 13 | mTempAllocator(&inTempAllocator), |
| 14 | mSteps(inTempAllocator) |
| 15 | { |
| 16 | } |
| 17 | |
| 18 | PhysicsUpdateContext::~PhysicsUpdateContext() |
| 19 | { |
| 20 | JPH_ASSERT(mBodyPairs == nullptr); |
| 21 | JPH_ASSERT(mActiveConstraints == nullptr); |
| 22 | } |
| 23 | /// @endcond |
| 24 | |
| 25 | JPH_NAMESPACE_END |