Class RaycastSegmentWorker
Stores segment data used by one context-owned raycast service while checking collider overlaps.
public sealed class RaycastSegmentWorker
- Inheritance
-
RaycastSegmentWorker
- Inherited Members
Constructors
RaycastSegmentWorker()
public RaycastSegmentWorker()
Methods
CheckAABBoxOverlaps(Vector3d, Vector3d, ref SwiftList<Vector3d>)
Checks whether an axis-aligned bounding box overlaps this worker's prepared ray segment.
public bool CheckAABBoxOverlaps(Vector3d min, Vector3d max, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
minVector3dmaxVector3doutputIntersectionPointsSwiftList<Vector3d>
Returns
CheckAABBoxOverlaps(LSCuboidCollider, ref SwiftList<Vector3d>)
Checks whether a cuboid's axis-aligned bounds overlap the prepared segment.
public bool CheckAABBoxOverlaps(LSCuboidCollider aabox, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
aaboxLSCuboidCollideroutputIntersectionPointsSwiftList<Vector3d>
Returns
CheckCapsuleOverlaps(LSCapsuleCollider, ref SwiftList<Vector3d>)
Checks whether a capsule collider overlaps the prepared segment.
public bool CheckCapsuleOverlaps(LSCapsuleCollider capsuleCollider, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
capsuleColliderLSCapsuleCollideroutputIntersectionPointsSwiftList<Vector3d>
Returns
CheckConeOverlaps(LSConeCollider, ref SwiftList<Vector3d>)
Checks whether a cone collider overlaps the prepared segment.
public bool CheckConeOverlaps(LSConeCollider coneCollider, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
coneColliderLSConeCollideroutputIntersectionPointsSwiftList<Vector3d>
Returns
CheckCylinderOverlaps(LSCylinderCollider, ref SwiftList<Vector3d>)
Checks whether a cylinder collider overlaps the prepared segment.
public bool CheckCylinderOverlaps(LSCylinderCollider cylinderCollider, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
cylinderColliderLSCylinderCollideroutputIntersectionPointsSwiftList<Vector3d>
Returns
CheckMeshOverlaps(LSMeshCollider, ref SwiftList<Vector3d>)
Checks whether a mesh collider overlaps the prepared segment.
public bool CheckMeshOverlaps(LSMeshCollider meshCollider, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
meshColliderLSMeshCollideroutputIntersectionPointsSwiftList<Vector3d>
Returns
CheckOBBoxOverlaps(LSCuboidCollider, ref SwiftList<Vector3d>)
Checks whether an oriented bounding box overlaps this worker's prepared ray segment.
public bool CheckOBBoxOverlaps(LSCuboidCollider oobox, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
ooboxLSCuboidCollideroutputIntersectionPointsSwiftList<Vector3d>
Returns
CheckSphereOverlaps(FixedBoundSphere, ref SwiftList<Vector3d>)
Checks whether a sphere overlaps this worker's prepared ray segment.
public bool CheckSphereOverlaps(FixedBoundSphere sphere, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
sphereFixedBoundSphereThe sphere bound.
outputIntersectionPointsSwiftList<Vector3d>Receives segment points reconstructed from exact physical intersection distances.
Returns
CheckSphereOverlaps(LSSphereCollider, ref SwiftList<Vector3d>)
Checks whether a sphere collider overlaps the prepared segment.
public bool CheckSphereOverlaps(LSSphereCollider sphereCollider, ref SwiftList<Vector3d> outputIntersectionPoints)
Parameters
sphereColliderLSSphereCollideroutputIntersectionPointsSwiftList<Vector3d>
Returns
PrepareSegmentCheck(Vector3d, Vector3d, bool)
Prepares this worker for overlap checks against the line segment between two points.
public void PrepareSegmentCheck(Vector3d p1, Vector3d p2, bool calculateIntersectionPoints = true)
Parameters
p1Vector3dp2Vector3dcalculateIntersectionPointsbool