MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getSurfaceHeight

Method getSurfaceHeight

Engine/source/environment/waterBlock.cpp:714–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714F32 WaterBlock::getSurfaceHeight( const Point2F &pos ) const
715{
716 if ( !mWorldBox.isContained( pos ) )
717 return -1.0f;
718
719 return getPosition().z;
720}
721
722void WaterBlock::_getWaterPlane( const Point3F &camPos, PlaneF &outPlane, Point3F &outPos )
723{

Callers

nothing calls this directly

Calls 2

getPositionFunction · 0.85
isContainedMethod · 0.45

Tested by

no test coverage detected