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)
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)
def draw(self, bot, view_id): transformBot(bot) wrapper.draw(self.mesh, 1.0)