Struct PhysicsMass
Syntax
public struct PhysicsMass : IComponentData
Fields
AngularExpansionFactor
Declaration
public float AngularExpansionFactor
Field Value
InverseInertia
Declaration
public float3 InverseInertia
Field Value
Type |
Description |
Unity.Mathematics.float3 |
|
InverseMass
Declaration
Field Value
Declaration
public RigidTransform Transform
Field Value
Type |
Description |
Unity.Mathematics.RigidTransform |
|
Properties
CenterOfMass
Declaration
public float3 CenterOfMass { get; set; }
Property Value
Type |
Description |
Unity.Mathematics.float3 |
|
InertiaOrientation
Declaration
public quaternion InertiaOrientation { get; set; }
Property Value
Type |
Description |
Unity.Mathematics.quaternion |
|
Methods
CreateDynamic(MassProperties, Single)
Declaration
public static PhysicsMass CreateDynamic(MassProperties massProperties, float mass)
Parameters
Returns
CreateKinematic(MassProperties)
Declaration
public static PhysicsMass CreateKinematic(MassProperties massProperties)
Parameters
Returns
Extension Methods