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)
def fit(self, node): Base.fit(self, node) self.geometry = panda.CollisionRay(panda.Point3(*self.origin), panda.Vec3(*self.direction))
def getMesh(self): mesh = Base.getMesh(self) mesh.orientation = [0, 180, 0] return mesh