API

Interface CharacterSurfaceInfo

Surface information computed by checkSupport method

Index
averageAngularSurfaceVelocity: Vector3

The average angular velocity of the surface.

averageSurfaceNormal: Vector3

The average normal vector of the surface. This vector is perpendicular to the surface and points outwards.

averageSurfaceVelocity: Vector3

The average velocity of the surface. This vector represents the speed and direction in which the surface is moving.

isSurfaceDynamic: boolean

Indicates whether the surface is dynamic. A dynamic surface is one that can change its properties over time, such as moving platforms or surfaces that can be affected by external forces. surfaceInfo.supportedState is always CharacterSupportedState.SUPPORTED when isSurfaceDynamic is true.

supportedState: CharacterSupportedState

The supported state of the character on the surface.