Пример #1
0
  def fit(self, node):
    Base.fit(self, node)

    position = panda.Vec3(*self.origin)+panda.Vec3(*self.direction)*self.length
    self.position = [position[0], position[1], position[2]]
    
    self.geometry = panda.OdeRayGeom(node.world.space, self.globalLength)
Пример #2
0
    def fit(self, node):
        Base.fit(self, node)

        self.geometry = panda.CollisionRay(panda.Point3(*self.origin), panda.Vec3(*self.direction))
Пример #3
0
 def getMesh(self):
   mesh = Base.getMesh(self)
   mesh.orientation = [0, 180, 0]
   
   return mesh