기술 자료

Unity Engine

Unity Engine

SetDensity(float, bool)

Set the shape density. See PhysicsBody.massConfiguration.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public void SetDensity(float density, bool updateBodyMass)

Parameters

density

The density to set.

updateBodyMass

Whether to update the body mass configuration. Not doing so is faster, especially when setting multiple shapes.