MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetFloorNormal

Method GetFloorNormal

TombEngine/Game/collision/Point.cpp:113–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 Vector3 PointCollisionData::GetFloorNormal()
114 {
115 if (_floorNormal.has_value())
116 return *_floorNormal;
117
118 // Set floor normal.
119 if (GetFloorBridgeItemNumber() != NO_VALUE)
120 {
121 _floorNormal = GetBridgeNormal(true);
122 }
123 else
124 {
125 _floorNormal = GetBottomSector().GetSurfaceNormal(_position.x, _position.z, true);
126 }
127
128 return *_floorNormal;
129 }
130
131 Vector3 PointCollisionData::GetCeilingNormal()
132 {

Callers 12

ControlElectricCleanerFunction · 0.45
ControlTrainFunction · 0.45
GetPushableCollisionFunction · 0.45
IsNextSectorValidFunction · 0.45
AlignLaraToSurfaceFunction · 0.45
TestGroundMovementSetupFunction · 0.45
UpdateDripsFunction · 0.45
SpawnFootprintFunction · 0.45
SetSectorAttribsFunction · 0.45
GetCollisionInfoFunction · 0.45
DoProjectileDynamicsFunction · 0.45

Calls 2

GetSurfaceNormalMethod · 0.80
has_valueMethod · 0.45

Tested by 1

TestGroundMovementSetupFunction · 0.36