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

Method GetCeilingNormal

TombEngine/Game/collision/Point.cpp:131–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 }
130
131 Vector3 PointCollisionData::GetCeilingNormal()
132 {
133 if (_ceilingNormal.has_value())
134 return *_ceilingNormal;
135
136 // Set ceiling normal.
137 if (GetCeilingBridgeItemNumber() != NO_VALUE)
138 {
139 _ceilingNormal = GetBridgeNormal(false);
140 }
141 else
142 {
143 _ceilingNormal = GetTopSector().GetSurfaceNormal(_position.x, _position.z, false);
144 }
145
146 return *_ceilingNormal;
147 }
148
149 int PointCollisionData::GetFloorBridgeItemNumber()
150 {

Callers 9

lara_col_slopeclimbFunction · 0.45
lara_col_slopehangFunction · 0.45
lara_col_slopeshimmyFunction · 0.45
SlopeHangExtraFunction · 0.45
SlopeReachExtraFunction · 0.45
SlopeClimbExtraFunction · 0.45
SlopeClimbDownExtraFunction · 0.45
SlopeMonkeyExtraFunction · 0.45
GetCollisionInfoFunction · 0.45

Calls 2

GetSurfaceNormalMethod · 0.80
has_valueMethod · 0.45

Tested by

no test coverage detected