BulletSim: fix the FloatOnWater code so avatars can normally go underwater.

connector_plugin
Robert Adams 2012-10-01 12:10:06 -07:00
parent 33617e09a1
commit f2c78281ce
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ public class BSCharacter : BSPhysObject
_position.Z = terrainHeight + 2.0f; _position.Z = terrainHeight + 2.0f;
ret = true; ret = true;
} }
if ((CurrentCollisionFlags & CollisionFlags.BS_FLOATS_ON_WATER) == 0) if ((CurrentCollisionFlags & CollisionFlags.BS_FLOATS_ON_WATER) != 0)
{ {
float waterHeight = PhysicsScene.GetWaterLevelAtXYZ(_position); float waterHeight = PhysicsScene.GetWaterLevelAtXYZ(_position);
if (Position.Z < waterHeight) if (Position.Z < waterHeight)