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

Method IsSteepCeiling

TombEngine/Game/collision/Point.cpp:416–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 bool PointCollisionData::IsSteepCeiling()
417 {
418 short slopeAngle = Geometry::GetSurfaceSlopeAngle(GetCeilingNormal(), -Vector3::UnitY);
419 short steepSlopeAngle = (GetCeilingBridgeItemNumber() != NO_VALUE) ?
420 DEFAULT_STEEP_CEILING_SLOPE_ANGLE :
421 GetTopSector().GetSurfaceSteepSlopeAngle(_position.x, _position.z, false);
422
423 return (abs(slopeAngle) >= steepSlopeAngle);
424 }
425
426 bool PointCollisionData::IsDiagonalFloorStep()
427 {

Callers 4

CanFallFromMonkeySwingFunction · 0.45
TestMonkeySwingSetupFunction · 0.45
LadderMonkeyExtraFunction · 0.45
GetCollisionPositionFunction · 0.45

Calls 2

GetSurfaceSlopeAngleFunction · 0.85

Tested by 1

TestMonkeySwingSetupFunction · 0.36