Пример #1
0
 def drawRotated(self, bot, angle_quat, centre_mesh, alpha=1.0):
     p = bot.getPos()
     a = bot.getAttitude()
     wrapper.drawRotated(p.x, p.y, p.z, a.w, a.x, a.y, a.z, angle_quat.w,
                         angle_quat.x, angle_quat.y, angle_quat.z,
                         centre_mesh, alpha)
     wrapper.draw(self.mesh, alpha)
Пример #2
0
 def drawRotated(self, bot, angle_quat, centre_mesh, alpha=1.0):
     p=bot.getPos();
     a=bot.getAttitude();
     wrapper.drawRotated(p.x, p.y, p.z,
                             a.w, a.x, a.y, a.z,
                             angle_quat.w, angle_quat.x, angle_quat.y, angle_quat.z,
                             centre_mesh, alpha);
     wrapper.draw(self.mesh, alpha)
Пример #3
0
 def draw(self, bot, view_id):
     transformBot(bot)
     wrapper.draw(self.mesh, 1.0)
Пример #4
0
 def draw(self, bot, view_id):
     transformBot(bot)
     wrapper.draw(self.mesh, 1.0)