Splitscreen with No Viewports

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Blockmaster27

Can splitscreen be accomplished without viewports?

The main problem we are having is that our IK system transforms a set of targets that need to be a child node of a camera. The viewport stops child nodes from being transformed, and always ends up with the wrong translation/rotation no matter where the code is coming from.

:bust_in_silhouette: Reply From: Blockmaster27

For anyone who finds this:

I accomplished this by attaching the IK transform code to the parent player node. The viewport should have only one node – the camera only. Use get_viewport().get_camera() to make transform calls on the camera node. Use a forward xform of a basis of your view rotation to make sure the IK system projects itself in the right direction. Example: view_rotation().xform(Vector3.FORWARD) * DISTANCE