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

Method onCameraScopeQuery

Engine/source/T3D/player.cpp:2013–2025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2011}
2012
2013void Player::onCameraScopeQuery(NetConnection *connection, CameraScopeQuery *query)
2014{
2015 // First, we are certainly in scope, and whatever we're riding is too...
2016 if(mControlObject.isNull() || mControlObject == mMount.object)
2017 Parent::onCameraScopeQuery(connection, query);
2018 else
2019 {
2020 connection->objectInScope(this);
2021 if (isMounted())
2022 connection->objectInScope(mMount.object);
2023 mControlObject->onCameraScopeQuery(connection, query);
2024 }
2025}
2026
2027ShapeBase* Player::getControlObject()
2028{

Callers

nothing calls this directly

Calls 2

objectInScopeMethod · 0.80
isNullMethod · 0.45

Tested by

no test coverage detected