shown in other instead.
A player spectator is a free flying camera without a physical body, which is approximated with a sphere and therefore can collide with objects (however, it cannot push or interact with them).
- When changing the theta angle, the vertical view direction of the player actor changes.
- When changing the phi angle, the horizontal view direction and the basis of the player actor change.
A player spectator can be used to create a spectator mode that allows for observing the world. Due to collisions, movement of the camera can be limited.
- The PlayerSpectator class to manage the spectator via API
Creating a Spectator#
To create a spectator camera, do the following:
- On the Menu bar, choose Create -> Camera -> Spectator.
- Place the camera somewhere in the world and specify the required parameters via the Parameters window.
Editing a Player Spectator#
|View Direction||X, Y, and Z values of the vector defining where the player's view is directed.|
|Collision||Toggle on and off the player's ability to collide with other objects.|
|Collision Mask||A bit mask defining nodes the player is able to collide with.|
|Collision Radius||The radius of the player's sphere.|
|Min Velocity||The default velocity of the player.|
|Max Velocity||???+ in class|
|Min Theta||The minimum theta angle (zenith angle, also known as pitch angle) that determines how far upward the player can look.|
|Max Theta||The maximum theta angle (zenith angle, also known as pitch angle) that determines how far downward the player can look.|
|Acceleration||The player's acceleration.|
|Damping||The player's velocity damping with the time.|
|Turning||The velocity of the player's turning action.|
|Phi||The phi angle (azimuth angle, also known as yaw angle). This angle determines the horizontal viewing direction, i.e. left or right.|
|Theta||The theta angle (zenith angle, also known as pitch angle). This angle determines the vertical viewing direction, i.e. upward and downward. The value is clamped between the minimum and the maximum theta angle.|
|Num Contacts||The number of contacts, in which the player's sphere participates.|