C4 Engine
C4 Engine API Documentation

Interactor::SetInteractionProbe

Defined in:  C4World.h
Sets the line segment representing the interaction probe.
Prototype

void SetInteractionProbe(const Point3D& p1, const Point3D& p2);

Parameters
p1 The beginning of the line segment.
p2 The end of the line segment.
Description
The SetInteractionProbe sets the world-space endpoint coordinates of the probe used to test for interactive objects. This function is typically called from within a function overriding the World::DetectInteractions function before the base class DetectInteraction function is called.

When the interaction probe intersects interactive objects in a world, the Interactor::HandleInteractionEvent function is called to handle various interaction events.
See Also

Interactor::GetInteractionNode

Interactor::HandleInteractionEvent