mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-23 15:09:52 -05:00
wantAvatarPhysics is now simply on - not a config variable
This commit is contained in:
@@ -17,7 +17,6 @@ import Task
|
||||
|
||||
class ControlManager:
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory("ControlManager")
|
||||
wantAvatarPhysics = base.config.GetBool('want-avatar-physics', 0)
|
||||
wantAvatarPhysicsIndicator = base.config.GetBool('want-avatar-physics-indicator', 0)
|
||||
wantAvatarPhysicsDebug = base.config.GetBool('want-avatar-physics-debug', 0)
|
||||
|
||||
@@ -31,14 +30,12 @@ class ControlManager:
|
||||
self.ghostControls=GhostWalker.GhostWalker()
|
||||
if __debug__:
|
||||
self.devControls=DevWalker.DevWalker()
|
||||
if self.wantAvatarPhysics:
|
||||
self.walkControls=GravityWalker.GravityWalker(
|
||||
gravity = -32.1740 * 2.0) # * 2.0 is a hack;
|
||||
#self.walkControls=NonPhysicsWalker.NonPhysicsWalker()
|
||||
#self.walkControls=PhysicsWalker.PhysicsWalker(
|
||||
# gravity = -32.1740 * 2.0) # * 2.0 is a hack;
|
||||
else:
|
||||
self.walkControls=NonPhysicsWalker.NonPhysicsWalker()
|
||||
self.walkControls=GravityWalker.GravityWalker(
|
||||
gravity = -32.1740 * 2.0) # * 2.0 is a hack;
|
||||
|
||||
# This is the non physics walker if you ever wanted to turn off phys
|
||||
# self.walkControls=NonPhysicsWalker.NonPhysicsWalker()
|
||||
|
||||
self.currentControls = self.walkControls
|
||||
self.isEnabled = 1
|
||||
#self.monitorTask = taskMgr.add(self.monitor, "ControlManager-%s"%(id(self)), priority=-1)
|
||||
|
||||
Reference in New Issue
Block a user