Link Search Menu Expand Document

Sample Line Trace

Sample environment using line casting

The Line Trace node performs a single line trace for each point, using a local attribute or property as direction & size.


In
Points that will be used as origin for line tracing
Out
In with extra attributes and properties

This node works with collisions and as such can be very expensive on large datasets.

Table of content


Properties


Each output property is written individually for each point.

Property Description
Settings
Direction Select which property or attribute should be used as direction for the line trace.
Max Distance Maximum trace distance.
Local Max Distance If enabled, will use a local property or attribute as Max Distance.
Outputs
Success Attribute Name Writes a boolean attribute to each point specifying whether the sampling has been successful (true) or not (false).
Sampling is considered unsuccessful if there was no point within the specified range.
Location Attribute Name Writes the sampled location, as an FVector.
Look at Attribute Name Writes the direction from the point to the sampled location, as an FVector.
Normal Attribute Name Writes the normal of the surface at the sampled, as an FVector.
Distance Attribute Name Writes the distance between the point and the sampled location, as a double.

Collision Settings


Collision Settings

These settings drive which objects will be ignored during the collision checks.

Property Description
Trace Complex Whether to collide against complex or simple collision.
Note that this setting may not be supported everywhere.
Collision Type The type of collision check. Can be one of:
-Channel
-ObjectType
-Profile
The selected mode changes which settings are available.
Collision Channel Lets you pick the collision channel to check against.
Collision Object Type Lets you pick the object type to check against.
Collision Profile Name Lets you set a custom profile name to check against.
Ignore Self If enabled, will ignore the current PCG Component’ actor owner.
Ignored Actor Selector Vanilla PCG Actor Selector.