~codeforger/pypal/docs

« back to all changes in this revision

Viewing changes to pypal/body/box.py

  • Committer: Michael Rochester
  • Date: 2014-07-20 14:25:45 UTC
  • Revision ID: m.rochester93@googlemail.com-20140720142545-z14oaetu1ls4hy4s
updated some documentation and switched the implimentation of the character class to be a generic body.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
        """
9
9
        Parameters:
10
10
          pos: ``float[3]`` The x, y, z position of the Box.
11
 
          size: ``float[3]`` The height, width, and depth of the Box
12
 
          mass: ``float`` The mass of the object.
 
11
          size: ``float[3]`` The height, width, depth, of the Box
 
12
          mass: ``float`` The mass of the Box.
13
13
        """
14
14
        self._size = size
15
15
        self.obj = _pal.lib.body_box_create(c.c_float(pos[0]),c.c_float(pos[1]),c.c_float(pos[2]),c.c_float(size[0]),c.c_float(size[1]),c.c_float(size[2]),c.c_float(mass))
21
21
        return "A Box at : %.2f, %.2f, %.2f" % (x, y, z)
22
22
 
23
23
    def get_size(self):
24
 
        """returns the size of the object in a 3 part tuple"""
 
24
        """ Returns the size of the object in a 3 part tuple """
25
25
        return self._size
 
 
b'\\ No newline at end of file'