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

Method castRayRendered

Engine/source/T3D/shapeBase.cpp:2821–2837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2819}
2820
2821bool ShapeBase::castRayRendered(const Point3F &start, const Point3F &end, RayInfo* info)
2822{
2823 if (mShapeInstance)
2824 {
2825 RayInfo localInfo;
2826 mShapeInstance->animate();
2827 bool res = mShapeInstance->castRayRendered(start, end, &localInfo, mShapeInstance->getCurrentDetail());
2828 if (res)
2829 {
2830 *info = localInfo;
2831 info->object = this;
2832 return true;
2833 }
2834 }
2835
2836 return false;
2837}
2838
2839
2840//----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

getCurrentDetailMethod · 0.80
animateMethod · 0.45

Tested by

no test coverage detected