mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
no onscreen debug in optimize mode
This commit is contained in:
parent
ae36ca0070
commit
c17748953a
@ -292,7 +292,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
self.cTrav = collisionTraverser
|
||||
self.floorOffset = floorOffset = 7.0
|
||||
self.wallBitmask = wallBitmask
|
||||
self.floorBitmask = BitMask32().allOff() #*#floorBitmask
|
||||
self.floorBitmask = floorBitmask
|
||||
self.avatarRadius = avatarRadius
|
||||
self.floorOffset = floorOffset
|
||||
self.reach = reach
|
||||
@ -738,10 +738,11 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
|
||||
newVector.normalize()
|
||||
newVector *= maxLen
|
||||
onScreenDebug.add("newVector",
|
||||
newVector)
|
||||
onScreenDebug.add("newVector length",
|
||||
newVector.length())
|
||||
if __debug__:
|
||||
onScreenDebug.add("newVector",
|
||||
newVector)
|
||||
onScreenDebug.add("newVector length",
|
||||
newVector.length())
|
||||
self.acForce.setVector(Vec3(newVector))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user