TraceParamsBuilder
Classpublic sealed class TraceParamsBuilderFluent builder for TraceParams.
View sourceConstructors
public TraceParamsBuilder(TraceParams? seed)- seedTraceParams?
Methods
Force the trace to hit everything.
public TraceParamsBuilder ForceHitEverything(bool enabled = true)- enabledbooloptional
Whether the trace should report solid hits.
public TraceParamsBuilder HitSolid(bool enabled = true)- enabledbooloptional
Whether the trace should report hits requiring contact generation.
public TraceParamsBuilder HitSolidRequiresGenerateContacts(bool enabled = true)- enabledbooloptional
Whether the trace should report trigger hits.
public TraceParamsBuilder HitTrigger(bool enabled = true)- enabledbooloptional
Whether disabled collision pairs should be ignored.
public TraceParamsBuilder IgnoreDisabledPairs(bool enabled = true)- enabledbooloptional
Entities that should be ignored by the trace.
public TraceParamsBuilder IgnoreEntities(IEnumerable<CEntityInstance> entities)- entitiesIEnumerable<CEntityInstance>
Entities that should be ignored by the trace.
public TraceParamsBuilder IgnoreEntity(CEntityInstance entity)- entityCEntityInstance
Whether hitboxes should be ignored when both sides interact with hitboxes.
public TraceParamsBuilder IgnoreIfBothInteractWithHitboxes(bool enabled = true)- enabledbooloptional
Entity owners that should be ignored by the trace.
public TraceParamsBuilder IgnoreOwner(CEntityInstance owner)- ownerCEntityInstance
Entity owners that should be ignored by the trace.
public TraceParamsBuilder IgnoreOwners(IEnumerable<CEntityInstance> owners)- ownersIEnumerable<CEntityInstance>
Interaction mask for "as" behavior.
public TraceParamsBuilder InteractAs(MaskTrace flags)- flagsMaskTrace
Interaction mask to exclude.
public TraceParamsBuilder InteractExclude(MaskTrace flags)- flagsMaskTrace
Interaction mask to include.
public TraceParamsBuilder InteractWith(MaskTrace flags)- flagsMaskTrace
Interaction mask for "as" behavior.
public TraceParamsBuilder RemoveInteractAs(MaskTrace flags)- flagsMaskTrace
Interaction mask to exclude.
public TraceParamsBuilder RemoveInteractExclude(MaskTrace flags)- flagsMaskTrace
Interaction mask to include.
public TraceParamsBuilder RemoveInteractWith(MaskTrace flags)- flagsMaskTrace
public TraceParamsBuilder WithCapsuleRay(Vector centerA, Vector centerB, float radius)Collision group used by the trace.
public TraceParamsBuilder WithCollisionGroup(CollisionGroup collisionGroup)- collisionGroupCollisionGroup
Included detail layers and target detail layer used by native query shape attributes.
public TraceParamsBuilder WithDetailLayers(ushort includedDetailLayers, byte targetDetailLayer = 0)Optional hierarchy ids used by the native query shape attributes (max 2 values used).
public TraceParamsBuilder WithHierarchyIds(params ushort[] hierarchyIds)- hierarchyIdsushort[]
public TraceParamsBuilder WithHullRay(Vector mins, Vector maxs)Interaction mask to include/exclude and interaction mask for "as" behavior.
public TraceParamsBuilder WithInteraction(MaskTrace interactWith, MaskTrace interactExclude = MaskTrace.Empty, MaskTrace interactAs = MaskTrace.Empty)Indicates whether entity iteration is enabled for custom filtering.
public TraceParamsBuilder WithIterateEntities(bool iterateEntities)- iterateEntitiesbool
public TraceParamsBuilder WithLineRay(Vector startOffset, float radius = 0)Which object groups should be included by the query.
public TraceParamsBuilder WithObjectQuery(RnQueryObjectSet objectQuery)- objectQueryRnQueryObjectSet
Optional callback to decide whether an entity should be hit.
public TraceParamsBuilder WithShouldHitEntity(Func<CEntityInstance, bool>? shouldHitEntity)- shouldHitEntityFunc<CEntityInstance, bool>?
public TraceParamsBuilder WithSphereRay(Vector center, float radius)