Interface CharacterSurfaceInfo
interface CharacterSurfaceInfo {
averageAngularSurfaceVelocity: Vector3;
averageSurfaceNormal: Vector3;
averageSurfaceVelocity: Vector3;
isSurfaceDynamic: boolean;
supportedState: CharacterSupportedState;
}
averageAngularSurfaceVelocity: Vector3;
averageSurfaceNormal: Vector3;
averageSurfaceVelocity: Vector3;
isSurfaceDynamic: boolean;
supportedState: CharacterSupportedState;
}
Properties
average Angular Surface Velocity
The average angular velocity of the surface.
average Surface Normal
The average normal vector of the surface. This vector is perpendicular to the surface and points outwards.
average Surface Velocity
The average velocity of the surface. This vector represents the speed and direction in which the surface is moving.
is Surface Dynamic
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.
supported State
The supported state of the character on the surface.
Surface information computed by checkSupport method