Documentation

Unity Engine

Download Unity

Unity Engine

surfaceNormal

The outward-pointing surface normal of the fluid, in world space. Points away from the submerged side; shape points with a negative separation from the plane are submerged. Defaults to Vector2.up (a flat horizontal water surface). Must be non-zero; the engine normalises it internally so it does not
Read time 1 minuteLast updated 2 days ago

Definition

public Vector2 surfaceNormal { readonly get; set; }