Continuous Collision Detection¶
-
ipctk.is_step_collision_free(mesh: ipctk.CollisionMesh, vertices_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous'], vertices_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous'], min_distance: SupportsFloat | None =
None, broad_phase: ipctk.BroadPhase =None, narrow_phase_ccd: ipctk.NarrowPhaseCCD =TightInclusionCCD()) bool¶ Determine if the step is collision free.
Note
Assumes the trajectory is linear.
- Parameters:¶
- mesh: ipctk.CollisionMesh¶
The collision mesh.
- vertices_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous']¶
Surface vertex vertices at start as rows of a matrix.
- vertices_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous']¶
Surface vertex vertices at end as rows of a matrix.
- min_distance: SupportsFloat | None =
None¶ Deprecated: give the mesh a thickness (CollisionMesh.set_thickness) instead. If given, every pair keeps this distance and the mesh’s thickness is ignored; otherwise each pair keeps its two primitives’ thicknesses (zero without a thickness).
- broad_phase: ipctk.BroadPhase =
None¶ Broad phase to use.
- narrow_phase_ccd: ipctk.NarrowPhaseCCD =
TightInclusionCCD()¶ The narrow phase CCD algorithm to use.
- Returns:¶
True if <b>any</b> collisions occur.
-
ipctk.compute_collision_free_stepsize(mesh: ipctk.CollisionMesh, vertices_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous'], vertices_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous'], min_distance: SupportsFloat | None =
None, broad_phase: ipctk.BroadPhase =None, narrow_phase_ccd: ipctk.NarrowPhaseCCD =TightInclusionCCD()) float¶ Computes a maximal step size that is collision free.
Note
Assumes the trajectory is linear. When using SweepAndTiniestQueue broad phase, tolerance and max_iterations are extracted from TightInclusionCCD if provided, otherwise defaults are used.
- Parameters:¶
- mesh: ipctk.CollisionMesh¶
The collision mesh.
- vertices_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous']¶
Vertex vertices at start as rows of a matrix. Assumes vertices_t0 is intersection free.
- vertices_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[m, n]', 'flags.f_contiguous']¶
Surface vertex vertices at end as rows of a matrix.
- min_distance: SupportsFloat | None =
None¶ Deprecated: give the mesh a thickness (CollisionMesh.set_thickness) instead. If given, every pair keeps this distance and the mesh’s thickness is ignored; otherwise each pair keeps its two primitives’ thicknesses (zero without a thickness).
- broad_phase: ipctk.BroadPhase =
None¶ Broad phase to use.
- narrow_phase_ccd: ipctk.NarrowPhaseCCD =
TightInclusionCCD()¶ The narrow phase CCD algorithm to use.
- Returns:¶
A step-size \(\in [0, 1]\) that is collision free. A value of 1.0 if a full step and 0.0 is no step.
Narrow Phase CCD¶
- class ipctk.NarrowPhaseCCD¶
Bases:
pybind11_objectPublic Methods:
__init__(self)point_point_ccd(self, p0_t0, ], p1_t0, ], ...)point_edge_ccd(self, p_t0, ], e0_t0, ], ...)point_triangle_ccd(self, p_t0, ], t0_t0, ], ...)edge_edge_ccd(self, ea0_t0, ], ea1_t0, ], ...)Private Methods:
_pybind11_conduit_v1_
- class Mode¶
Bases:
pybind11_objectHow a narrow-phase CCD query is used.
Members:
STANDALONE : A standalone query: the method applies its own conservative strategy.
COMPONENT : The per-piece linear CCD inside a piecewise driver (e.g., NonlinearCCD): return the raw time of impact.
COMPONENT_NO_ZERO_TOI : Like COMPONENT, but a time of impact of exactly zero is unacceptable.
-
COMPONENT =
<Mode.COMPONENT: 1>¶
-
COMPONENT_NO_ZERO_TOI =
<Mode.COMPONENT_NO_ZERO_TOI: 2>¶
-
STANDALONE =
<Mode.STANDALONE: 0>¶
-
__members__ =
{'COMPONENT': <Mode.COMPONENT: 1>, 'COMPONENT_NO_ZERO_TOI': <Mode.COMPONENT_NO_ZERO_TOI: 2>, 'STANDALONE': <Mode.STANDALONE: 0>}¶
- property name : str¶
- property value : int¶
-
COMPONENT =
- edge_edge_ccd(self: ipctk.NarrowPhaseCCD, ea0_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], ea1_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], eb0_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], eb1_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], ea0_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], ea1_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], eb0_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], eb1_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], min_distance: typing.SupportsFloat = 0.0, tmax: typing.SupportsFloat = 1.0, mode: ipctk.NarrowPhaseCCD.Mode = <Mode.STANDALONE: 0>) tuple[bool, float]¶
- point_edge_ccd(self: ipctk.NarrowPhaseCCD, p_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], e0_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], e1_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], p_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], e0_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], e1_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], min_distance: typing.SupportsFloat = 0.0, tmax: typing.SupportsFloat = 1.0, mode: ipctk.NarrowPhaseCCD.Mode = <Mode.STANDALONE: 0>) tuple[bool, float]¶
- point_point_ccd(self: ipctk.NarrowPhaseCCD, p0_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], p1_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], p0_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], p1_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[m, 1]"], min_distance: typing.SupportsFloat = 0.0, tmax: typing.SupportsFloat = 1.0, mode: ipctk.NarrowPhaseCCD.Mode = <Mode.STANDALONE: 0>) tuple[bool, float]¶
- point_triangle_ccd(self: ipctk.NarrowPhaseCCD, p_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], t0_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], t1_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], t2_t0: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], p_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], t0_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], t1_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], t2_t1: typing.Annotated[numpy.typing.NDArray[numpy.float64], "[3, 1]"], min_distance: typing.SupportsFloat = 0.0, tmax: typing.SupportsFloat = 1.0, mode: ipctk.NarrowPhaseCCD.Mode = <Mode.STANDALONE: 0>) tuple[bool, float]¶
- class ipctk.NarrowPhaseCCD.Mode¶
Bases:
pybind11_objectHow a narrow-phase CCD query is used.
Members:
STANDALONE : A standalone query: the method applies its own conservative strategy.
COMPONENT : The per-piece linear CCD inside a piecewise driver (e.g., NonlinearCCD): return the raw time of impact.
COMPONENT_NO_ZERO_TOI : Like COMPONENT, but a time of impact of exactly zero is unacceptable.
-
COMPONENT =
<Mode.COMPONENT: 1>¶
-
COMPONENT_NO_ZERO_TOI =
<Mode.COMPONENT_NO_ZERO_TOI: 2>¶
-
STANDALONE =
<Mode.STANDALONE: 0>¶
-
__members__ =
{'COMPONENT': <Mode.COMPONENT: 1>, 'COMPONENT_NO_ZERO_TOI': <Mode.COMPONENT_NO_ZERO_TOI: 2>, 'STANDALONE': <Mode.STANDALONE: 0>}¶
- property name : str¶
- property value : int¶
-
COMPONENT =
Tight Inclusion CCD¶
- class ipctk.TightInclusionCCD¶
Bases:
NarrowPhaseCCDPublic Data Attributes:
Solver tolerance.
Maximum number of iterations.
Conservative rescaling of the time of impact.
Public Methods:
__init__(self[, tolerance, max_iterations, ...])Construct a new AdditiveCCD object.
Inherited from
NarrowPhaseCCD__init__(self)point_point_ccd(self, p0_t0, ], p1_t0, ], ...)point_edge_ccd(self, p_t0, ], e0_t0, ], ...)point_triangle_ccd(self, p_t0, ], t0_t0, ], ...)edge_edge_ccd(self, ea0_t0, ], ea1_t0, ], ...)
-
DEFAULT_CONSERVATIVE_RESCALING =
0.8¶
-
DEFAULT_MAX_ITERATIONS =
10000000¶
-
DEFAULT_TOLERANCE =
1e-06¶
-
SMALL_TOI =
1e-06¶
-
__init__(self, tolerance: SupportsFloat =
1e-06, max_iterations: SupportsInt =10000000, conservative_rescaling: SupportsFloat =0.8)¶ Construct a new AdditiveCCD object.
- property conservative_rescaling : float¶
Conservative rescaling of the time of impact.
- property max_iterations : int¶
Maximum number of iterations.
- property tolerance : float¶
Solver tolerance.
-
DEFAULT_CONSERVATIVE_RESCALING =
Additive CCD¶
- class ipctk.AdditiveCCD¶
Bases:
NarrowPhaseCCDPublic Data Attributes:
The conservative rescaling value used to avoid taking steps exactly to impact.
Public Methods:
__init__(self[, max_iterations, ...])Construct a new AdditiveCCD object.
Inherited from
NarrowPhaseCCD__init__(self)point_point_ccd(self, p0_t0, ], p1_t0, ], ...)point_edge_ccd(self, p_t0, ], e0_t0, ], ...)point_triangle_ccd(self, p_t0, ], t0_t0, ], ...)edge_edge_ccd(self, ea0_t0, ], ea1_t0, ], ...)
-
COMPONENT_CONSERVATIVE_RESCALING =
0.99¶
-
DEFAULT_CONSERVATIVE_RESCALING =
0.9¶
-
__init__(self, max_iterations: SupportsFloat =
10000000, conservative_rescaling: SupportsFloat =0.9)¶ Construct a new AdditiveCCD object.
- property conservative_rescaling : float¶
The conservative rescaling value used to avoid taking steps exactly to impact.
-
COMPONENT_CONSERVATIVE_RESCALING =
Inexact CCD¶
Note
This method is disabled by default. To enable it, set the
IPC_TOOLKIT_WITH_INEXACT_CCD CMake option to ON.
- ipctk.inexact_point_edge_ccd_2D(p_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]'], e0_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]'], e1_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]'], p_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]'], e0_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]'], e1_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]'], conservative_rescaling: SupportsFloat) tuple[bool, float]¶
Inexact continuous collision detection between a point and an edge in 2D.
- Parameters:¶
- p_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]']¶
Initial position of the point
- e0_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]']¶
Initial position of the first endpoint of the edge
- e1_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]']¶
Initial position of the second endpoint of the edge
- p_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]']¶
Final position of the point
- e0_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]']¶
Final position of the first endpoint of the edge
- e1_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[2, 1]']¶
Final position of the second endpoint of the edge
- conservative_rescaling: SupportsFloat¶
Conservative rescaling of the time of impact
- Returns:¶
True if a collision was detected, false otherwise. Output time of impact
- Return type:¶
Tuple of
Nonlinear CCD¶
- class ipctk.NonlinearTrajectory¶
Bases:
pybind11_objectPublic Methods:
__init__(self)__call__(self, t)Compute the point's position at time t
max_distance_from_linear(self, t0, t1)Compute the maximum distance from the nonlinear trajectory to a linearized trajectory
Private Methods:
_pybind11_conduit_v1_
- class ipctk.IntervalNonlinearTrajectory¶
Bases:
NonlinearTrajectoryPublic Methods:
__init__(self)__call__(*args, **kwargs)Overloaded function.
max_distance_from_linear(self, t0, t1)Compute the maximum distance from the nonlinear trajectory to a linearized trajectory
Inherited from
NonlinearTrajectory__init__(self)__call__(self, t)Compute the point's position at time t
max_distance_from_linear(self, t0, t1)Compute the maximum distance from the nonlinear trajectory to a linearized trajectory
- __call__(*args, **kwargs)¶
Overloaded function.
__call__(self: ipctk.IntervalNonlinearTrajectory, t: typing.SupportsFloat) -> typing.Annotated[numpy.typing.NDArray[numpy.float64], “[m, 1]”]
Compute the point’s position at time t
__call__(self: ipctk.IntervalNonlinearTrajectory, t: filib::Interval) -> typing.Annotated[numpy.typing.NDArray[filib::Interval], “[m, 1]”]
Compute the point’s position over a time interval t
- max_distance_from_linear(self, t0: SupportsFloat, t1: SupportsFloat) float¶
Compute the maximum distance from the nonlinear trajectory to a linearized trajectory
Note
This uses interval arithmetic to compute the maximum distance. If you know a tighter bound on the maximum distance, it is recommended to override this function.
- class ipctk.NonlinearCCD¶
Bases:
pybind11_objectPublic Data Attributes:
Fraction of the initial gap (above min_distance) a step may close.
The narrow-phase CCD used for the per-piece linear CCD (never None).
Public Methods:
__init__(*args, **kwargs)Overloaded function.
point_point_ccd(self, p0, p1[, ...])Perform nonlinear CCD between two points moving along nonlinear trajectories.
point_edge_ccd(self, p, e0, e1[, ...])Perform nonlinear CCD between a point and a linear edge moving along nonlinear trajectories.
edge_edge_ccd(self, ea0, ea1, eb0, eb1[, ...])Perform nonlinear CCD between two linear edges moving along nonlinear trajectories.
point_triangle_ccd(self, p, t0, t1, t2[, ...])Perform nonlinear CCD between a point and a linear triangle moving along nonlinear trajectories.
conservative_piecewise_linear_ccd(distance, ...)Perform conservative piecewise linear CCD of a nonlinear trajectories.
Private Methods:
_pybind11_conduit_v1_
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: ipctk.NonlinearCCD, narrow_phase_ccd: ipctk.NarrowPhaseCCD = None, conservative_rescaling: typing.SupportsFloat = 0.8) -> None
Construct a new NonlinearCCD object.
- Parameters:
narrow_phase_ccd: The narrow-phase CCD used for the per-piece linear CCD (if None, a default-constructed TightInclusionCCD is used). It is queried with a COMPONENT NarrowPhaseCCD.Mode and never modified, so it may be shared with standalone users. conservative_rescaling: Fraction of the initial gap (above min_distance) a step may close: the CCD reports an impact once the distance shrinks to min_distance + (1 - conservative_rescaling) * (d0 - min_distance).
__init__(self: ipctk.NonlinearCCD, tolerance: typing.SupportsFloat, max_iterations: typing.SupportsInt = 10000000, conservative_rescaling: typing.SupportsFloat = 0.8) -> None
Construct a NonlinearCCD whose per-piece CCD is a TightInclusionCCD.
Deprecated: pass narrow_phase_ccd=TightInclusionCCD(tolerance, max_iterations) instead.
- Parameters:
tolerance: Tight Inclusion’s solver tolerance. max_iterations: Tight Inclusion’s maximum number of iterations. conservative_rescaling: Fraction of the initial gap (above min_distance) a step may close: the CCD reports an impact once the distance shrinks to min_distance + (1 - conservative_rescaling) * (d0 - min_distance).
-
static conservative_piecewise_linear_ccd(distance: collections.abc.Callable[[SupportsFloat], float], max_distance_from_linear: collections.abc.Callable[[SupportsFloat, SupportsFloat], float], linear_ccd: collections.abc.Callable[[SupportsFloat, SupportsFloat, SupportsFloat, bool, SupportsFloat], bool], min_distance: SupportsFloat =
0, tmax: SupportsFloat =1.0, conservative_rescaling: SupportsFloat =0.8) tuple[bool, float]¶ Perform conservative piecewise linear CCD of a nonlinear trajectories.
- Parameters:¶
- distance: collections.abc.Callable[[SupportsFloat], float]¶
Return the distance for a given time in [0, 1].
- max_distance_from_linear: collections.abc.Callable[[SupportsFloat, SupportsFloat], float]¶
Return the maximum distance from the linearized trajectory for a given time interval.
- linear_ccd: collections.abc.Callable[[SupportsFloat, SupportsFloat, SupportsFloat, bool, SupportsFloat], bool]¶
Perform linear CCD on a given time interval.
- tmax: SupportsFloat =
1.0¶ Maximum time to check for collision.
- min_distance: SupportsFloat =
0¶ Minimum separation distance between the objects.
- conservative_rescaling: SupportsFloat =
0.8¶ Fraction of the initial gap (above min_distance) a step may close: the CCD reports an impact once the distance shrinks to min_distance + (1 - conservative_rescaling) * (d0 - min_distance).
- Returns:¶
Output time of impact.
- Return type:¶
Tuple of
- property conservative_rescaling : float¶
Fraction of the initial gap (above min_distance) a step may close.
-
edge_edge_ccd(self, ea0: ipctk.NonlinearTrajectory, ea1: ipctk.NonlinearTrajectory, eb0: ipctk.NonlinearTrajectory, eb1: ipctk.NonlinearTrajectory, min_distance: SupportsFloat =
0, tmax: SupportsFloat =1.0) tuple[bool, float]¶ Perform nonlinear CCD between two linear edges moving along nonlinear trajectories.
- Parameters:¶
- ea0: ipctk.NonlinearTrajectory¶
First edge’s first endpoint’s trajectory
- ea1: ipctk.NonlinearTrajectory¶
First edge’s second endpoint’s trajectory
- eb0: ipctk.NonlinearTrajectory¶
Second edge’s first endpoint’s trajectory
- eb1: ipctk.NonlinearTrajectory¶
Second edge’s second endpoint’s trajectory
- min_distance: SupportsFloat =
0¶ Minimum separation distance between the two edges
- tmax: SupportsFloat =
1.0¶ Maximum time to check for collision
- Returns:¶
True if the two edges collide, false otherwise. Output time of impact
- Return type:¶
Tuple of
- property narrow_phase_ccd : ipctk.NarrowPhaseCCD¶
The narrow-phase CCD used for the per-piece linear CCD (never None). Assigning None selects a default-constructed TightInclusionCCD.
-
point_edge_ccd(self, p: ipctk.NonlinearTrajectory, e0: ipctk.NonlinearTrajectory, e1: ipctk.NonlinearTrajectory, min_distance: SupportsFloat =
0, tmax: SupportsFloat =1.0) tuple[bool, float]¶ Perform nonlinear CCD between a point and a linear edge moving along nonlinear trajectories.
- Parameters:¶
- p: ipctk.NonlinearTrajectory¶
Point’s trajectory
- e0: ipctk.NonlinearTrajectory¶
Edge’s first endpoint’s trajectory
- e1: ipctk.NonlinearTrajectory¶
Edge’s second endpoint’s trajectory
- min_distance: SupportsFloat =
0¶ Minimum separation distance between the point and the edge
- tmax: SupportsFloat =
1.0¶ Maximum time to check for collision
- Returns:¶
True if the point and edge collide, false otherwise. Output time of impact
- Return type:¶
Tuple of
-
point_point_ccd(self, p0: ipctk.NonlinearTrajectory, p1: ipctk.NonlinearTrajectory, min_distance: SupportsFloat =
0, tmax: SupportsFloat =1.0) tuple[bool, float]¶ Perform nonlinear CCD between two points moving along nonlinear trajectories.
- Parameters:¶
- p0: ipctk.NonlinearTrajectory¶
First point’s trajectory
- p1: ipctk.NonlinearTrajectory¶
Second point’s trajectory
- min_distance: SupportsFloat =
0¶ Minimum separation distance between the two points
- tmax: SupportsFloat =
1.0¶ Maximum time to check for collision
- Returns:¶
True if the two points collide, false otherwise. Output time of impact
- Return type:¶
Tuple of
-
point_triangle_ccd(self, p: ipctk.NonlinearTrajectory, t0: ipctk.NonlinearTrajectory, t1: ipctk.NonlinearTrajectory, t2: ipctk.NonlinearTrajectory, min_distance: SupportsFloat =
0, tmax: SupportsFloat =1.0) tuple[bool, float]¶ Perform nonlinear CCD between a point and a linear triangle moving along nonlinear trajectories.
- Parameters:¶
- p: ipctk.NonlinearTrajectory¶
Point’s trajectory
- t0: ipctk.NonlinearTrajectory¶
Triangle’s first vertex’s trajectory
- t1: ipctk.NonlinearTrajectory¶
Triangle’s second vertex’s trajectory
- t2: ipctk.NonlinearTrajectory¶
Triangle’s third vertex’s trajectory
- min_distance: SupportsFloat =
0¶ Minimum separation distance between the two edges
- tmax: SupportsFloat =
1.0¶ Maximum time to check for collision
- Returns:¶
True if the point and triangle collide, false otherwise. Output time of impact
- Return type:¶
Tuple of
Miscellaneous¶
-
ipctk.point_static_plane_ccd(p_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], p_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], plane_origin: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], plane_normal: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], conservative_rescaling: SupportsFloat =
0.8) tuple[bool, float]¶ Compute the time of impact between a point and a static plane in 3D using continuous collision detection.
- Parameters:¶
- p_t0: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']¶
The initial position of the point.
- p_t1: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']¶
The final position of the point.
- plane_origin: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']¶
The origin of the plane.
- plane_normal: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']¶
The normal of the plane.
- conservative_rescaling: SupportsFloat =
0.8¶ Conservative rescaling of the time of impact.
- Returns:¶
True if a collision was detected, false otherwise. Output time of impact
- Return type:¶
Tuple of