mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
physicshandler -> pusher
This commit is contained in:
parent
1593012d5a
commit
80ae6acaf3
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user