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