This adds limiting the ghost data to a specific area around the client.

By default it is not included in the build, you must #define GHOSTSCOPING in the torqueConfig.h to enable it.
The distance can be set via the mission file by adding

visibleGhostDistance = "1000";

Or if it is not set in the mission file it will default to what is defined in torqueConfig.h #defined as GHOSTSCOPING_DEFAULT_DISTANCE_IF_NOT_IN_MISSION

The mission default distance can be overridden on a per connection basis by using gameconnection:setVisibleGhostDistance and gameconnection:getVisibleGhostDistance

The logic for setting the scoping distance was moved from shapebase in the original design to SceneObject so that it will affect cameras, players, etc.
Getting picky…. Sheesh!

 

I’ll fix them in a couple

 

From: Daniel Buckmaster [mailto:notifications@github.com] 
Sent: Thursday, November 06, 2014 6:59 AM
To: GarageGames/Torque3D
Cc: Vincent Gee
Subject: Re: [Torque3D] This adds limiting the ghost data to a specific area around the client. (#908)

 

In Engine/source/T3D/levelInfo.h:

> @@ -55,6 +56,9 @@ class LevelInfo : public NetObject
>  
>        F32 mVisibleDistance;
>  
> +#ifdef GHOSTSCOPING
> +       F32 mVisibleGhostDistance;

More tab, would prefer it to be removed please!

—
Reply to this email directly or view it on GitHub <https://github.com/GarageGames/Torque3D/pull/908/files#r19940083> .  <https://github.com/notifications/beacon/ACUNZKlHJXf5zn2GGvG3hbI1vNnZ5TPYks5nK1oUgaJpZM4C3pEc.gif>