unreal.RigUnit_LineTraceByTraceChannel¶
- class unreal.RigUnit_LineTraceByTraceChannel(start: Vector = Ellipsis, end: Vector = Ellipsis, trace_channel: TraceTypeQuery = Ellipsis, hit: bool = False, hit_location: Vector = Ellipsis, hit_normal: Vector = Ellipsis)¶
Bases:
RigUnitPerforms a line trace against the world and return the first blocking hit using a specific channel. Target objects can have different object types, but they need to have the same trace channel set to “block” in their collision response settings. You can create custom trace channels in Project Setting - Collision.
C++ Source:
Plugin: ControlRig
Module: ControlRig
File: RigUnit_WorldCollision.h
Editor Properties: (see get_editor_property/set_editor_property)
end(Vector): [Read-Write] End of the trace in rig / global spacehit(bool): [Read-Write] Returns true if there was a hithit_location(Vector): [Read-Write] Hit location in rig / global Spacehit_normal(Vector): [Read-Write] Hit normal in rig / global Spacestart(Vector): [Read-Write] Start of the trace in rig / global spacetrace_channel(TraceTypeQuery): [Read-Write] The ‘channel’ that this trace is in, used to determine which components to hit
- property trace_channel: TraceTypeQuery¶
[Read-Write] The ‘channel’ that this trace is in, used to determine which components to hit
- Type: