기술 자료

Unity Engine

Unity Engine

SetDensity(float)

Sets the mass based on the attached colliders assuming a constant density.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public void SetDensity(float density)

Parameters

density

Remarks

This is useful to set the mass to a value which scales with the size of the colliders.