Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ModifiableMassProperties

Mass-related modifiable properties of a contact pair.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public struct ModifiableMassProperties

Remarks

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.

Fields

Value

Description

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.