SightAngle
Module: Inworld.Assets. Namespace: Inworld.Sample. Inherited from MonoBehavior
This class is attached to the InworldCharacter prefab for setting its sight and angle settings for use in the SampleMultiCharacter. scene
Inspector Variables
Variable | Description |
---|---|
HeadTransform | The transform of the avatar's head. |
CameraTransform | The transform of the current camera. |
SightAngle | Determines the size of the angle this InworldCharacter can see the PlayerController |
SightDistance | Determines the distance this InworldCharacter can see the PlayerController |
Distance Priority Factor | Determines how much of an impact distance will make in the Priority calculation. |
RefreshRate | Determines the frequency to update SightAngle and SightDistance. |
Properties
Properties | Description |
---|---|
Character | Get its character. |
IsValid | Checks if selecting characters by sight and angle is applied to this character. |