Table of Contents

Delegate CameraObstacleTest

Namespace
Stride.CommunityToolkit.Scripts
Assembly
Stride.CommunityToolkit.dll

The test a follow camera makes before it settles: whether anything stands on the line from from, the point it looks at, to to, where it wants to be.

public delegate float? CameraObstacleTest(Vector3 from, Vector3 to)

Parameters

from Vector3

The pivot the camera looks at.

to Vector3

Where the camera would sit with nothing in the way.

Returns

float?

The distance from from to the first obstacle, or null for a clear line.