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

Method Probe

TombEngine/Scripting/Internal/TEN/Collision/Probe.cpp:72–76  ·  view source on GitHub ↗

Create a probe at a specified world position in a room. @function Probe @tparam Vec3 pos World position. @tparam[opt] int roomNumber Room number. Must be used if probing a position in an overlapping room. @treturn Probe A new probe object.

Source from the content-addressed store, hash-verified

70 // @tparam[opt] int roomNumber Room number. Must be used if probing a position in an overlapping room.
71 // @treturn Probe A new probe object.
72 Probe::Probe(const Vec3& pos)
73 {
74 auto convertedPos = pos.ToVector3i();
75 _pointCollision = GetPointCollision(convertedPos, FindRoomNumber(convertedPos));
76 }
77
78 Probe::Probe(const Vec3& pos, int roomNumber)
79 {

Callers

nothing calls this directly

Calls 8

GetPointCollisionFunction · 0.85
FindRoomNumberFunction · 0.85
TranslatePointFunction · 0.85
ToVector3iMethod · 0.45
ToVector3Method · 0.45
ToDirectionMethod · 0.45
ToEulerAnglesMethod · 0.45
NormalizeMethod · 0.45

Tested by

no test coverage detected