SetDensity(float, bool)
Set the shape density. See PhysicsBody.massConfiguration.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public void SetDensity(float density, bool updateBodyMass)