distance3d.colliders.Cone¶
- class distance3d.colliders.Cone(cone2origin, radius, height, artist=None)[source]¶
Cone collider.
- Parameters:
- cone2originarray, shape (4, 4)
Pose of the cone.
- radiusfloat
Radius of the cone.
- heightfloat
Length of the cone.
- artistpytransform3d.visualizer.Artist, optional (default: None)
Corresponding artist for visualizer.
Methods
aabb()Get axis-aligned bounding box.
center()Returns the (approximate) center of the collider.
collider2origin()Get the transformation matrix of the collider
first_vertex()Get vertex with index 0 from collider to initialize GJK algorithm.
make_artist([c])Make artist that represents this collider.
support_function(search_direction)Support function for collider.
update_pose(pose)Update pose of collider.
Methods
__init__(cone2origin, radius, height[, artist])aabb()Get axis-aligned bounding box.
center()Returns the (approximate) center of the collider.
collider2origin()Get the transformation matrix of the collider
first_vertex()Get vertex with index 0 from collider to initialize GJK algorithm.
make_artist([c])Make artist that represents this collider.
support_function(search_direction)Support function for collider.
update_pose(pose)Update pose of collider.