Python Wrapper pycrcc

Point class

class pycrcc.Point
__init__(self: pycrcc.Point, x: float, y: float) → None
center(self: pycrcc.Point) → array
collide(self: pycrcc.Point, arg0: pycrcc.CollisionObject) → bool

RectAABB class

class pycrcc.RectAABB
__init__(self: pycrcc.RectAABB, width/2: float, height/2: float, center x: float, center y: float) → None
__str__(self: pycrcc.RectAABB) → str
collide(self: pycrcc.RectAABB, arg0: pycrcc.CollisionObject) → bool
max_x(self: pycrcc.RectAABB) → float
max_y(self: pycrcc.RectAABB) → float
min_x(self: pycrcc.RectAABB) → float
min_y(self: pycrcc.RectAABB) → float
set_all(self: pycrcc.RectAABB, arg0: float, arg1: float, arg2: float, arg3: float) → None

RectOBB class

class pycrcc.RectOBB
__init__(self: pycrcc.RectOBB, width/2: float, height/2: float, orientation: float, center x: float, center y: float) → None
__str__(self: pycrcc.RectOBB) → str
center(self: pycrcc.RectOBB) → array
collide(self: pycrcc.RectOBB, arg0: pycrcc.CollisionObject) → bool
local_x_axis(self: pycrcc.RectOBB) → array
local_y_axis(self: pycrcc.RectOBB) → array
r_x(self: pycrcc.RectOBB) → float

Positive halfwidth extent of OBB along local x-axis

r_y(self: pycrcc.RectOBB) → float

Positive halfwidth extent of OBB along local y-axis

set_center(self: pycrcc.RectOBB, arg0: float, arg1: float) → None

Triangle class

class pycrcc.Triangle
__init__(self: pycrcc.Triangle, x1: float, y1: float, x2: float, y2: float, x3: float, y3: float) → None
__str__(self: pycrcc.Triangle) → str
collide(self: pycrcc.Triangle, arg0: pycrcc.CollisionObject) → bool
vertices(self: pycrcc.Triangle) → list

Circle class

class pycrcc.Circle
__init__(self: pycrcc.Circle, radius: float, center x: float, center y: float) → None
center(self: pycrcc.Circle) → array
collide(self: pycrcc.Circle, arg0: pycrcc.CollisionObject) → bool
r(self: pycrcc.Circle) → float

radius of the circle

x(self: pycrcc.Circle) → float

x-coordinate of center

y(self: pycrcc.Circle) → float

y-coordinate of center

Polygon class

class pycrcc.Polygon
__init__(self: pycrcc.Polygon, outer_boundary: List[List[float[2]]], holes: list, triangle mesh: list) → None
__str__(self: pycrcc.Polygon) → str
collide(self: pycrcc.Polygon, arg0: pycrcc.CollisionObject) → bool
triangle_mesh(self: pycrcc.Polygon) → list
vertices(self: pycrcc.Polygon) → list

TimeVariantCollisionObject class

class pycrcc.TimeVariantCollisionObject
__init__(self: pycrcc.TimeVariantCollisionObject, time_start_idx: int) → None
append_obstacle(self: pycrcc.TimeVariantCollisionObject, arg0: pycrcc.CollisionObject) → None
collide(self: pycrcc.TimeVariantCollisionObject, arg0: pycrcc.CollisionObject) → bool
obstacle_at_time(self: pycrcc.TimeVariantCollisionObject, arg0: int) → pycrcc.CollisionObject
time_end_idx(self: pycrcc.TimeVariantCollisionObject) → int
time_start_idx(self: pycrcc.TimeVariantCollisionObject) → int

ShapeGroup class

class pycrcc.ShapeGroup
__init__(self: pycrcc.ShapeGroup) → None
add_shape(self: pycrcc.ShapeGroup, arg0: pycrcc.Shape) → None
collide(self: pycrcc.ShapeGroup, arg0: pycrcc.CollisionObject) → bool
overlap(self: pycrcc.ShapeGroup, arg0: pycrcc.ShapeGroup) → list
overlap_map(self: pycrcc.ShapeGroup, arg0: pycrcc.ShapeGroup) → dict
size(self: pycrcc.ShapeGroup) → int
unpack(self: pycrcc.ShapeGroup) → list

CollisionChecker class

class pycrcc.CollisionChecker
__init__(self: pycrcc.CollisionChecker) → None
__str__(self: pycrcc.CollisionChecker) → str
add_collision_object(self: pycrcc.CollisionChecker, arg0: pycrcc.CollisionObject) → None
any_collides(self: pycrcc.CollisionChecker, arg0: list) → bool
collide(self: pycrcc.CollisionChecker, arg0: pycrcc.CollisionObject) → bool
find_all_colliding_objects(self: pycrcc.CollisionChecker, arg0: pycrcc.CollisionObject) → list
number_of_obstacles(self: pycrcc.CollisionChecker) → int
obstacles(self: pycrcc.CollisionChecker) → list
raytrace(self: pycrcc.CollisionChecker, arg0: float, arg1: float, arg2: float, arg3: float, arg4: bool) → list
time_slice(self: pycrcc.CollisionChecker, arg0: int) → pycrcc.CollisionChecker
window_query(self: pycrcc.CollisionChecker, arg0: pycrcc.RectAABB) → pycrcc.CollisionChecker