FromSingleRay Method
Microsoft Robotics Class Reference
Creates a RaycastProperties instance representing a single ray specified in world coordinates.
Namespace: Microsoft.Robotics.Simulation.Physics
Assembly: SimulationCommon (in SimulationCommon.dll) Version: 4.0.261.0 (4.0.261.0)
Syntax
public static RaycastProperties FromSingleRay(
Vector3 from,
Vector3 to
)
Parameters
- from
Type: Microsoft.Robotics.PhysicalModel. . :: . .Vector3
This is the origin for the ray cast
- to
Type: Microsoft.Robotics.PhysicalModel. . :: . .Vector3
This is the destination for the raycast. No object further from the origin than this point will be detected.
Return Value
A RaycastProperties instance ready to be passed to the physics engine.