Version: 2023.2

ModifiableMassProperties

struct in UnityEngine

切换到手册

描述

Mass-related modifiable properties of a contact pair.

Mostly useful to make a collider appear lighter to the solver than it actually is when the bodies in this contact pair have very different mass values.

变量

inverseInertiaScaleThe inverse inertia scaling that the solver should apply to the first body of this contact pair.
inverseMassScaleThe inverse mass scaling that the solver should apply to the first body of this contact pair.
otherInverseInertiaScaleThe inverse inertia scaling that the solver should apply to the second body of this contact pair.
otherInverseMassScaleThe inverse mass scaling that the solver should apply to the second body of this contact pair.