Source code for body.convex
from bodybase import BodyBase
[docs]class Convex(BodyBase):
def __init__(pos,points,mass = None, density = None):
"""
constructs a box and adds it to the world
rect: a 3 part tuple with x,y,z.
points: the points to construct the convex hull.
mass: the mass of the object, if mass is specified it will be used.
density: if no mass is specified and a density is, the mass will be
calculated from the density and the volumne.
"""
pass
[docs] def get_point():
"""returns the points of the object"""
pass
[docs] def get_metrics():
"""returns the pos of the object in a 3 part tuple"""
pass