Scripting API

BuoyancyEffector2D

class in UnityEngine · UnityEngine.Physics2DModule · inherits from Effector2D

8 of 8 of Unity's membersUnity's documentation
In Tassix

A fluid below a surface level: bodies in it are pushed up by the weight of the fluid their submerged shapes displace (at its centroid), damped, and carried by its flow.

Properties 8

float angularDamping { get; set; }
float angularDrag { get; set; }
float density { get; set; }
float flowAngle { get; set; }
float flowMagnitude { get; set; }
float flowVariation { get; set; }
float linearDamping { get; set; }
float surfaceLevel { get; set; }

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.