Associated Parameters: RaycastNode
Introduced
7.0
UI Location
• Geometry Queries
Description
Finds the first location on a surface that is hit by a ray cast from a given position in a given direction. The Proximity Method parameter specifies how the ray is interpreted:
[0] - Semi-line shoots an infinite ray in one direction.
[1] - Line shoots a ray in both directions.
[2] - Segment shoots a ray in one direction and is bounded by the length of the direction vector.
Parameters
|
Parameter Name |
Scripting Name |
Type |
Description |
|
Proximity Method |
proximitymethod |
Integer |
Method used to compute the proximity Possible Values: • 0: Semi Line • 1: Line • 2: Segment |
Port Description
Inputs
|
Group ID |
Instances |
Port Name |
Connection Info |
Description |
|
0 |
1 |
geometry |
• Type: siICENodeDataGeometry • Structure: siICENodeStructureSingle • Context: siICENodeContextSingleton |
The surface to be tested for hits by the ray. |
|
position |
• Type: siICENodeDataVector3 • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
The position from which the ray originates. |
||
|
direction |
• Type: siICENodeDataVector3 • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
The direction of the ray. |
||
|
enablecutoffdistance |
• Type: siICENodeDataBool • Structure: siICENodeStructureSingle • Context: siICENodeContextSingleton |
True to only look at locations within a given distance. |
||
|
cutoffdistance |
• Type: siICENodeDataFloat • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
Distance within which to look for ray hits. |
Outputs
|
Port Name |
Connection Info |
Description |
|
location |
• Type: siICENodeDataLocation • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
The location at which the ray hit the surface. |
|
hit |
• Type: siICENodeDataBool • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
A boolean indicating whether the ray actually hit the surface. |
Restrictions
• These structures must match: position, direction, cutoffdistance, location, hit
• These contexts must match: position, direction, cutoffdistance, location, hit
See Also
|
|
|
Autodesk Softimage v7.5