Ray_t
Union ray descriptor for VPhys2 trace queries. Set the active shape via one of the Init overloads or the static factory methods. The Type field indicates which union member is valid.
public struct Ray_t
Namespace: DeadworksManaged.Api
Source: Trace/Ray_t.cs#L11
Fields
Ray_t.Line
Signature
public LineTrace Line;
Source: Trace/Ray_t.cs#L12
Ray_t.Sphere
Signature
public SphereTrace Sphere;
Source: Trace/Ray_t.cs#L13
Ray_t.Hull
Signature
public HullTrace Hull;
Source: Trace/Ray_t.cs#L14
Ray_t.Capsule
Signature
public CapsuleTrace Capsule;
Source: Trace/Ray_t.cs#L15
Ray_t.Mesh
Signature
public MeshTrace Mesh;
Source: Trace/Ray_t.cs#L16
Ray_t.Type
Signature
public RayType_t Type;
Source: Trace/Ray_t.cs#L17
Methods
Ray_t.Init()
Signature
public void Init(Vector3 startOffset)
public void Init(Vector3 center, float radius)
public void Init(Vector3 mins, Vector3 maxs)
public void Init(Vector3 centerA, Vector3 centerB, float radius)
public unsafe void Init(Vector3 mins, Vector3 maxs, Vector3* vertices, int numVertices)
Source: Trace/Ray_t.cs#L19, Trace/Ray_t.cs#L25, Trace/Ray_t.cs#L35, Trace/Ray_t.cs#L45, Trace/Ray_t.cs#L60
Ray_t.CreateLine()
Signature
public static Ray_t CreateLine(Vector3 startOffset = default)
Source: Trace/Ray_t.cs#L68