physicshandler -> pusher

This commit is contained in:
Josh Wilson 2007-08-15 07:31:16 +00:00
parent 1593012d5a
commit 80ae6acaf3

View File

@ -15,14 +15,12 @@ although it does send messeges that allow a listener to play sounds or
animations based on control events.
"""
from pandac.PandaModules import *
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.controls.ControlManager import CollisionHandlerRayStart
from direct.showbase.InputStateGlobal import inputState
from direct.task.Task import Task
from pandac.PandaModules import *
import math
from PhysicsWalker import PhysicsWalker
import math
class ShipPilot(PhysicsWalker):
notify = directNotify.newCategory("ShipPilot")
@ -106,7 +104,7 @@ class ShipPilot(PhysicsWalker):
# This is a sphere on the ground to detect barrier collisions
# set up collision mechanism
self.pusher = PhysicsCollisionHandler()
self.pusher = CollisionHandlerPusher()
self.pusher.setInPattern("enter%in")
self.pusher.setOutPattern("exit%in")