LeviLamina
Loading...
Searching...
No Matches
DepenetrationComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class AABB;
8class Vec3;
9// clang-format on
10
12public:
13 // DepenetrationComponent inner types define
14 enum class Bit : int {
15 IsAlwaysOneWayCollision = 0,
16 WasPenetratingLastFrame = 1,
17 IsStuckInCollider = 2,
18 IsStuckItem = 3,
19 PushTowardsClosestSpace = 4,
20 Count = 5,
21 };
22
23 using Bitset = ::std::bitset<5>;
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, ::std::bitset<5>> mBits;
29 ::ll::TypedStorage<4, 12, ::Vec3> mMaxDepenetration;
30 ::ll::TypedStorage<8, 24, ::std::vector<::AABB>> mOneWayPhysicsBlocks;
31 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mTemporaryOverride;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI ::DepenetrationComponent& operator=(::DepenetrationComponent&&);
43 // NOLINTEND
44};
Definition AABB.h:16
Definition Vec3.h:10
Definition DepenetrationComponent.h:11