SetDensity(float)
Sets the mass based on the attached colliders assuming a constant density.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public void SetDensity(float density)
Parameters
Remarks
This is useful to set the mass to a value which scales with the size of the colliders.