Struct Part ​
Namespace: ValveResourceFormat.ResourceTypes.RubikonPhysics
Assembly: ValveResourceFormat.dll
Represents a physics part.
csharp
public struct PartConstructors ​
Part(KVObject) ​
Initializes a new instance of the Part struct.
csharp
public Part(KVObject data)Parameters ​
data KVObject
Properties ​
AngularDamping ​
Gets or sets the angular damping.
csharp
public float AngularDamping { readonly get; set; }Property Value ​
float
CollisionAttributeIndex ​
Gets or sets the collision attribute index.
csharp
public int CollisionAttributeIndex { readonly get; set; }Property Value ​
int
Flags ​
Gets or sets the flags.
csharp
public int Flags { readonly get; set; }Property Value ​
int
InertiaScale ​
Gets or sets the inertia scale.
csharp
public float InertiaScale { readonly get; set; }Property Value ​
float
LinearDamping ​
Gets or sets the linear damping.
csharp
public float LinearDamping { readonly get; set; }Property Value ​
float
Mass ​
Gets or sets the mass.
csharp
public float Mass { readonly get; set; }Property Value ​
float
MassCenterOverride ​
Gets or sets the centre of mass override, used when Part.OverrideMassCenter is set.
csharp
public Vector3 MassCenterOverride { readonly get; set; }Property Value ​
OverrideMassCenter ​
Gets or sets whether Part.MassCenterOverride replaces the shape-derived centre of mass.
csharp
public bool OverrideMassCenter { readonly get; set; }Property Value ​
bool
Shape ​
Gets or sets the shape.
csharp
public Shape Shape { readonly get; set; }
