Exemplo n.º 1
0
Arquivo: ray.py Projeto: kralf/morsel
  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)
Exemplo n.º 2
0
Arquivo: ray.py Projeto: kralf/morsel
    def fit(self, node):
        Base.fit(self, node)

        self.geometry = panda.CollisionRay(panda.Point3(*self.origin), panda.Vec3(*self.direction))