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

Method onCameraScopeQuery

Engine/source/T3D/player.cpp:2000–2012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1998}
1999
2000void Player::onCameraScopeQuery(NetConnection *connection, CameraScopeQuery *query)
2001{
2002 // First, we are certainly in scope, and whatever we're riding is too...
2003 if(mControlObject.isNull() || mControlObject == mMount.object)
2004 Parent::onCameraScopeQuery(connection, query);
2005 else
2006 {
2007 connection->objectInScope(this);
2008 if (isMounted())
2009 connection->objectInScope(mMount.object);
2010 mControlObject->onCameraScopeQuery(connection, query);
2011 }
2012}
2013
2014ShapeBase* Player::getControlObject()
2015{

Callers

nothing calls this directly

Calls 2

objectInScopeMethod · 0.80
isNullMethod · 0.45

Tested by

no test coverage detected