NAME: Object Control
CORE VERSION: 1.9.9
TEMPLATE VERSION: 1.0.0
DESCRIPTION:
This Template lets you hide the real Player object, and spawn in a CoreObject which the player's camera and inputs get attached to instead. An example of this can be seen in Roll 'em, which spawns a PhysicsSphere.
The Player is hidden and moved along with the CoreObject 1000 units above them. This is to avoid a Level of Detail problem when the camera gets too far away from the player object. One downside of this is that since Player collision is impossible to completely disable, there is this player-sized hitbox floating above the object. Feel free to adjust the offset as necessary.
VERSION NOTES:
1.0.0 - Initial release
HOW-TO SETUP:
First, look up Object Control on the Community Content Tab and import it into your project.
Next, navigate to My Shared Content -> Object Control and drag InputHandler into your hierarchy.
Dropping down InputHandler, you can see InputControllerSpawner. It has a Custom Property pointing to ControlledSphere, which is the Template it will spawn in to represent each player.
The ControlledSphere is the example object. If you'd like to make your own, just copy the InputController, ClientContext, and InputControllerClient from the ControlledSphere to your new CoreObject, make them a template, and replace the ControlledSphere in InputControllerSpawner, or simply change the StaticMesh of ControlledSphere and modify its behavior in the InputController script.
As always, if you have any questions, feel free to reach out to WaveParadigm on the Discord!