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

Function DefineEngineMethod

Engine/source/afx/afxCamera.cpp:498–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498DefineEngineMethod(afxCamera, setCameraSubject, bool, (SceneObject* subject),, "")
499{
500 if (!subject)
501 {
502 Con::errorf("Camera subject not found.");
503 return false;
504 }
505
506 object->setCameraSubject(subject);
507
508 return true;
509}
510
511DefineEngineMethod(afxCamera, setThirdPersonDistance, bool, (F32 distance),, "")
512{

Calls 8

setCameraSubjectMethod · 0.80
setThirdPersonAngleMethod · 0.80
setThirdPersonOffsetMethod · 0.80
setThirdPersonModeMethod · 0.80
setThirdPersonSnapMethod · 0.80
errorfFunction · 0.50
getModeMethod · 0.45

Tested by

no test coverage detected