mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fixed boat controls, reduced forward/backward friction
This commit is contained in:
parent
0bfd8ed6f9
commit
969ca0205b
@ -301,7 +301,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
self.nodes.append(fnp)
|
||||
self.avatarViscosity=LinearFrictionForce(0.0, 1.0, 0)
|
||||
self.avatarViscosity.setCoef(0.5)
|
||||
self.avatarViscosity.setAmplitude(4)
|
||||
self.avatarViscosity.setAmplitude(2)
|
||||
fn.addForce(self.avatarViscosity)
|
||||
self.phys.addLinearForce(self.avatarViscosity)
|
||||
|
||||
@ -610,8 +610,9 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
slideRight = 0#inputState.isSet("slideRight")
|
||||
jump = inputState.isSet("jump")
|
||||
# Determine what the speeds are based on the buttons:
|
||||
|
||||
if 1:
|
||||
|
||||
# this was causing the boat to get stuck moving forward or back
|
||||
if 0:
|
||||
if not hasattr(self, "sailsDeployed"):
|
||||
self.sailsDeployed = 0.0
|
||||
if forward and reverse:
|
||||
|
Loading…
x
Reference in New Issue
Block a user