Currently the approach to getting the heading of a PlayerEntity from a scene.Any file (which occurs when no spawnHeading is specified in the experiment config scene specification) is quite convoluted and confusing. We should simplify it.
Per discussion with @jspjutNV we should simplify this to allow more direct/uniform specification of the player frame within a scene using the frame = CFrame::from...() style specifications used elsewhere in G3D scene files.
We should eliminate the heading value from the PlayerEntity Any serialization as this is no longer needed
We should always default to the frame specified in the PlayerEntity over the player/default camera and make sure that when the player camera is created its frame is inherited from the PlayerEntity in code
Currently this issue can be demonstrated by loading the default scene (Simple_Hallway.Scene.Any) and observing that regardless of the PlayerEntityheading value the position_az/el reported in the Player_Action table appears to be inherited from the defaultCamera specification and not the PlayerEntity. This should be corrected such that no initial frame should need to be provided for cameras in FPSci scene specifications.
Currently the approach to getting the heading of a
PlayerEntity
from a scene.Any file (which occurs when nospawnHeading
is specified in the experiment configscene
specification) is quite convoluted and confusing. We should simplify it.frame = CFrame::from...()
style specifications used elsewhere in G3D scene files.heading
value from thePlayerEntity
Any serialization as this is no longer neededPlayerEntity
over the player/default camera and make sure that when the player camera is created its frame is inherited from thePlayerEntity
in codeCurrently this issue can be demonstrated by loading the default scene (
Simple_Hallway.Scene.Any
) and observing that regardless of thePlayerEntity
heading
value theposition_az/el
reported in thePlayer_Action
table appears to be inherited from thedefaultCamera
specification and not thePlayerEntity
. This should be corrected such that no initial frame should need to be provided for cameras in FPSci scene specifications.