From 80ae6acaf31796a79eb717c347214070ec80c4a1 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 15 Aug 2007 07:31:16 +0000 Subject: [PATCH] physicshandler -> pusher --- direct/src/controls/ShipPilot.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index da14c744f2..8f0d80bcad 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -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")