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