Class Rubikon.PhysicsMeshData
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Triangle mesh collision data for ray tracing.
public record Rubikon.PhysicsMeshData : IEquatable<Rubikon.PhysicsMeshData>Inheritance
object ← Rubikon.PhysicsMeshData
Implements
IEquatable<Rubikon.PhysicsMeshData>
Constructors
PhysicsMeshData(string[], string[], Vector3[], Triangle[], Node[])
Triangle mesh collision data for ray tracing.
public PhysicsMeshData(string[] InteractAs, string[] InteractExclude, Vector3[] VertexPositions, Mesh.Triangle[] Triangles, Mesh.Node[] PhysicsTree)Parameters
InteractAs string[]
InteractExclude string[]
VertexPositions Vector3[]
See Also
Properties
InteractAs
public string[] InteractAs { get; init; }Property Value
string[]
InteractExclude
public string[] InteractExclude { get; init; }Property Value
string[]
PhysicsTree
public Mesh.Node[] PhysicsTree { get; init; }Property Value
SurfacePropertyHash
Gets the hash of the surface property shared by triangles without their own.
public uint SurfacePropertyHash { get; init; }Property Value
uint
SurfacePropertyHashes
Gets the aggregate's surface property hashes, which Rubikon.PhysicsMeshData.TriangleSurfaceProperties index.
public uint[] SurfacePropertyHashes { get; init; }Property Value
uint[]
TriangleSurfaceProperties
Gets the surface property index of each triangle, or an empty array when the whole mesh uses Rubikon.PhysicsMeshData.SurfacePropertyHash.
public int[] TriangleSurfaceProperties { get; init; }Property Value
int[]
Triangles
public Mesh.Triangle[] Triangles { get; init; }Property Value
VertexPositions
public Vector3[] VertexPositions { get; init; }Property Value
Vector3[]
Methods
GetSurfacePropertyHash(int)
Gets the surface property hash of a triangle in Rubikon.PhysicsMeshData.Triangles.
public uint GetSurfacePropertyHash(int triangleIndex)Parameters
triangleIndex int
Returns
uint

