Struct RigidbodyBakingData
Component that specifies if a rigid body is a kinematic body and what its mass is.
Inherited Members
Namespace: Unity.Physics.Authoring
Syntax
[TemporaryBakingType]
public struct RigidbodyBakingData : IComponentData, IQueryTypeParameter
Fields
automaticCenterOfMass
Center of mass of the rigid body is automatically calculated if this is true.
Declaration
public bool automaticCenterOfMass
Field Value
Type | Description |
---|---|
Boolean |
automaticInertiaTensor
Inertia tensor of the rigid body is automatically calculated if this is true.
Declaration
public bool automaticInertiaTensor
Field Value
Type | Description |
---|---|
Boolean |
centerOfMass
Center of mass of the rigid body. Used if automaticCenterOfMass is false.
Declaration
public float3 centerOfMass
Field Value
Type | Description |
---|---|
float3 |
inertiaTensor
Inertia tensor of the rigid body. Used if automaticInertiaTensor is false.
Declaration
public float3 inertiaTensor
Field Value
Type | Description |
---|---|
float3 |
inertiaTensorRotation
Rotation of the inertia tensor. Used if automaticInertiaTensor is false.
Declaration
public quaternion inertiaTensorRotation
Field Value
Type | Description |
---|---|
quaternion |
isKinematic
Sets rigid body as kinematic body.
Declaration
public bool isKinematic
Field Value
Type | Description |
---|---|
Boolean |
mass
Mass of the rigid body.
Declaration
public float mass
Field Value
Type | Description |
---|---|
Single |