MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / ConsoleMethod

Function ConsoleMethod

Engine/source/T3D/player.cpp:7182–7206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7180}
7181
7182ConsoleMethod(Player, setVRControllers, void, 4, 4, "")
7183{
7184 OpenVRTrackedObject *controllerL, *controllerR;
7185 Vector<OpenVRTrackedObject*> list;
7186
7187 if (Sim::findObject(argv[2], controllerL))
7188 {
7189 list.push_back(controllerL);
7190 }
7191 else
7192 {
7193 list.push_back(NULL);
7194 }
7195
7196 if (Sim::findObject(argv[3], controllerR))
7197 {
7198 list.push_back(controllerR);
7199 }
7200 else
7201 {
7202 list.push_back(NULL);
7203 }
7204
7205 object->setControllers(list);
7206}
7207
7208#endif

Callers 3

entity.cppFile · 0.70
simObject.cppFile · 0.50
component.cppFile · 0.50

Calls 3

setControllersMethod · 0.80
findObjectFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected