Struct PhysicsMassOverride
Add this component to a dynamic body if it needs to sometimes switch to being kinematic. This allows you to retain its dynamic mass properties on its PhysicsMass component, but have the physics solver temporarily treat it as if it were kinematic.
Namespace: Unity.Physics
Syntax
public struct PhysicsMassOverride : IComponentData
Fields
IsKinematic
Declaration
public byte IsKinematic
Field Value
Type | Description |
---|---|
Byte |