PhysicsBodyDescription#
public sealed record PhysicsBodyDescription(PhysicsShape Shape, PhysicsMotion Motion = PhysicsMotion.Dynamic, PhysicsMaterial? Material = null, bool IsSensor = false, float LinearDamping = .05f, float AngularDamping = .05f, float GravityFactor = 1, bool Continuous = false, float Mass = 1, int Layer = 0)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Shape | PhysicsShape | get; init; | required |
Motion | PhysicsMotion | get; init; | PhysicsMotion.Dynamic |
Material | PhysicsMaterial? | get; init; | null |
IsSensor | bool | get; init; | false |
LinearDamping | float | get; init; | .05f |
AngularDamping | float | get; init; | .05f |
GravityFactor | float | get; init; | 1 |
Continuous | bool | get; init; | false |
Mass | float | get; init; | 1 |
Layer | int | get; init; | 0 |
Related types#
Material · PhysicsMaterial · PhysicsMotion · PhysicsShape
Source#
- PhysicsWorld3D.cs