Astra.PhysicsBodyState
Observed solver state in world space. Angular velocity is rad/s. Runtime only: capturing this does not change the authored initial velocity.
Namespace: Astra · Assembly: Astra.Scripting · Tipo: Struct
Declaração
Seção intitulada “Declaração”readonly record struct Astra.PhysicsBodyStateObserved solver state in world space. Angular velocity is rad/s. Runtime only: capturing this does not change the authored initial velocity.
Interfaces: System.IEquatable<Astra.PhysicsBodyState>.
Membros
Seção intitulada “Membros”| Membro | Categoria |
|---|---|
| .ctor | Method |
| AngularVelocity | Property |
| CenterOfMass | Property |
| IsActive | Property |
| IsSleeping | Property |
| LinearVelocity | Property |
.ctor
public PhysicsBodyState(System.Numerics.Vector3 LinearVelocity, System.Numerics.Vector3 AngularVelocity, System.Numerics.Vector3 CenterOfMass, bool IsActive, bool IsSleeping)Observed solver state in world space. Angular velocity is rad/s. Runtime only: capturing this does not change the authored initial velocity.
| Parâmetro | Tipo | Contrato |
|---|---|---|
LinearVelocity |
System.Numerics.Vector3 |
|
AngularVelocity |
System.Numerics.Vector3 |
|
CenterOfMass |
System.Numerics.Vector3 |
|
IsActive |
bool |
|
IsSleeping |
bool |
AngularVelocity
public System.Numerics.Vector3 AngularVelocity { get; init; }CenterOfMass
public System.Numerics.Vector3 CenterOfMass { get; init; }IsActive
public bool IsActive { get; init; }IsSleeping
public bool IsSleeping { get; init; }LinearVelocity
public System.Numerics.Vector3 LinearVelocity { get; init; }