Example #1
0
 def inverse_transform_position(self, pos):
     return capi.transform_inverse_transform_position(self._handle, prvec3(pos))
Example #2
0
 def rotate(self, eul, space = coordinate_space.world):
     capi.transform_rotate(self._handle, prvec3(eul), space.value)
Example #3
0
 def look_at(self, at, up):
     capi.transform_look_at(self._handle, self._handle, prvec3(up))
Example #4
0
 def translate(self, dirc, space = coordinate_space.world):
     capi.transform_translate(self._handle, prvec3(dirc), space.value)
Example #5
0
 def rotate_around(self, cent, axis, angle, look = False):
     capi.transform_rotate_around(self._handle, prvec3(cent),
                                 prvec3(axis), angle, look)
Example #6
0
 def set_local_euler_angles(self, eul):
     capi.transform_set_local_euler_angles(self._handle, prvec3(eul))
Example #7
0
 def set_scale(self, scl):
     capi.transform_set_scale(self._handle, prvec3(scl))
Example #8
0
 def set_position(self, pos):
     capi.transform_set_position(self._handle, prvec3(pos))
Example #9
0
 def set_up(self, up):
     capi.transform_set_up(self._handle, prvec3(up))
Example #10
0
 def transform_direction(self, dirc):
     return capi.transform_transform_direction(self._handle, prvec3(dirc))