API

Interface CharacterSurfaceInfo

Surface information returned by PhysicsCharacterController.checkSupport.

interface CharacterSurfaceInfo {
    averageAngularSurfaceVelocity: Vec3;
    averageSurfaceNormal: Vec3;
    averageSurfaceVelocity: Vec3;
    isSurfaceDynamic: boolean;
    supportedState: CharacterSupportedState;
}
Index
averageAngularSurfaceVelocity: Vec3

Average angular velocity induced by the supporting surfaces.

averageSurfaceNormal: Vec3

Average normal of the supporting surfaces (world space).

averageSurfaceVelocity: Vec3

Average linear velocity induced by the supporting surfaces.

isSurfaceDynamic: boolean

Whether the supporting surface belongs to a dynamic (simulated) body.

supportedState: CharacterSupportedState

Whether the character is unsupported, sliding, or supported.