Documentation

Unity Engine


User Manual

Script Reference

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 _up (a flat horizontal water surface). Must be non-zero; the engine normalises it internally so it does not need to be unit length.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 surfaceNormal { readonly get; set; }