Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
EPhysicsUpdateError.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2023 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
8
11{
12 None = 0,
13 ManifoldCacheFull = 1 << 0,
14 BodyPairCacheFull = 1 << 1,
15 ContactConstraintsFull = 1 << 2,
16};
17
20{
21 return static_cast<EPhysicsUpdateError>(static_cast<uint32>(inA) | static_cast<uint32>(inB));
22}
23
26{
27 ioA = ioA | inB;
28 return ioA;
29}
30
33{
34 return static_cast<EPhysicsUpdateError>(static_cast<uint32>(inA) & static_cast<uint32>(inB));
35}
36
#define JPH_NAMESPACE_END
Definition Core.h:414
std::uint32_t uint32
Definition Core.h:484
#define JPH_NAMESPACE_BEGIN
Definition Core.h:408
EPhysicsUpdateError
Enum used by PhysicsSystem to report error conditions during the PhysicsSystem::Update call....
Definition EPhysicsUpdateError.h:11
@ BodyPairCacheFull
The body pair cache is full, this means that too many bodies contacted. Some contacts were ignored....
@ ContactConstraintsFull
The contact constraints buffer is full. Some contacts were ignored. Increase inMaxContactConstraints ...
@ ManifoldCacheFull
The manifold cache is full, this means that the total number of contacts between bodies is too high....
EPhysicsUpdateError operator|(EPhysicsUpdateError inA, EPhysicsUpdateError inB)
OR operator for EPhysicsUpdateError.
Definition EPhysicsUpdateError.h:19
EPhysicsUpdateError operator|=(EPhysicsUpdateError &ioA, EPhysicsUpdateError inB)
OR operator for EPhysicsUpdateError.
Definition EPhysicsUpdateError.h:25
EPhysicsUpdateError operator&(EPhysicsUpdateError inA, EPhysicsUpdateError inB)
AND operator for EPhysicsUpdateError.
Definition EPhysicsUpdateError.h:32