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

Function GetPointCollision

TombEngine/Game/collision/Point.cpp:532–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530 }
531
532 PointCollisionData GetPointCollision(const Vector3i& pos, int roomNumber)
533 {
534 // HACK: Ensure room number is correct if position extends to another room.
535 // Accounts for some calls to this function which directly pass offset position instead of using dedicated probe overloads.
536 GetFloor(pos.x, pos.y, pos.z, (short*)&roomNumber);
537
538 return PointCollisionData(pos, roomNumber);
539 }
540
541 PointCollisionData GetPointCollision(const Vector3i& pos, int roomNumber, const Vector3& dir, float dist)
542 {

Callers 15

DrawDebugInfoMethod · 0.85
ControlSpinningBladeFunction · 0.85
EagleControlFunction · 0.85
TestSkidooDismountOKFunction · 0.85
SkidooControlFunction · 0.85
DoSnowEffectFunction · 0.85
DoSkidooShiftFunction · 0.85
SkidooDynamicsFunction · 0.85
TestSpeedboatDismountFunction · 0.85
DoSpeedboatDismountFunction · 0.85
SpeedboatDoShiftFunction · 0.85

Calls 5

GetFloorFunction · 0.85
PointCollisionDataClass · 0.85
GetLocationFunction · 0.85
TranslatePointFunction · 0.85
GetProbeRoomNumberFunction · 0.85

Tested by 15

TestSkidooDismountOKFunction · 0.68
TestSpeedboatDismountFunction · 0.68
TestUPVDismountFunction · 0.68
TestRubberBoatDismountFunction · 0.68
TestMinecartDismountFunction · 0.68
TestMotorbikeDismountFunction · 0.68
TestTriggersFunction · 0.68
TestValidLedgeFunction · 0.68
TestLaraHangFunction · 0.68
TestLaraHangCornerFunction · 0.68