TraceParams
Struct TraceParams
Namespace: SwiftlyS2.Shared.Trace
Assembly: SwiftlyS2.CS2.dll
Unified parameters for shape tracing APIs. This combines trace shape and filter settings in one object.
public struct TraceParamsInherited Members
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Constructors
TraceParams()
public TraceParams()Properties
Collision
Collision group used by the trace.
public CollisionGroup Collision { get; set; }EntitiesToIgnore
Entities that should be ignored by the trace.
public List<CEntityInstance> EntitiesToIgnore { get; set; }ForceHitEverything
Force the trace to hit everything.
public bool ForceHitEverything { get; set; }HierarchyIds
Optional hierarchy ids used by the native query shape attributes (max 2 values used).
public List<ushort> HierarchyIds { get; set; }HitSolid
Whether the trace should report solid hits.
public bool HitSolid { get; set; }HitSolidRequiresGenerateContacts
Whether the trace should report hits requiring contact generation.
public bool HitSolidRequiresGenerateContacts { get; set; }HitTrigger
Whether the trace should report trigger hits.
public bool HitTrigger { get; set; }IgnoreIfBothInteractWithHitboxes
Whether hitboxes should be ignored when both sides interact with hitboxes.
public bool IgnoreIfBothInteractWithHitboxes { get; set; }IncludedDetailLayers
Included detail layers used by native query shape attributes.
public ushort IncludedDetailLayers { get; set; }InteractAs
Interaction mask for "as" behavior.
public MaskTrace InteractAs { get; set; }InteractExclude
Interaction mask to exclude.
public MaskTrace InteractExclude { get; set; }InteractWith
Interaction mask to include.
public MaskTrace InteractWith { get; set; }IterateEntities
Indicates whether entity iteration is enabled for custom filtering.
public bool IterateEntities { get; set; }ObjectQuery
Which object groups should be included by the query.
public RnQueryObjectSet ObjectQuery { get; set; }OwnersToIgnore
Entity owners that should be ignored by the trace.
public List<CEntityInstance> OwnersToIgnore { get; set; }Ray
The ray definition used for tracing shape.
public Ray_t Ray { get; set; }ShouldHitEntity
Optional callback to decide whether an entity should be hit.
public Func<CEntityInstance, bool>? ShouldHitEntity { get; set; }ShouldIgnoreDisabledPairs
Whether disabled collision pairs should be ignored.
public bool ShouldIgnoreDisabledPairs { get; set; }TargetDetailLayer
Target detail layer used by native query shape attributes.
public byte TargetDetailLayer { get; set; }Methods
Builder()
Creates a new fluent builder.
public static TraceParamsBuilder Builder()Builder(TraceParams?)
Creates a new fluent builder seeded from an existing parameters object.
public static TraceParamsBuilder Builder(TraceParams? seed)- seed TraceParams?
Clone()
Creates a deep copy of the current parameters.
public TraceParams Clone()DefaultLine()
Creates a default parameters instance suitable for most line traces.
public static TraceParams DefaultLine()