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