distance3d.colliders.Disk

class distance3d.colliders.Disk(center, radius, normal, artist=None)[source]

Disk collider.

Parameters:
centerarray, shape (3,)

Center of the disk.

radiusfloat

Radius of the disk.

normalarray, shape (3,)

Normal to the plane in which the disk lies.

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.

__init__(center, radius, normal, artist=None)[source]

Methods

__init__(center, radius, normal[, 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.