Ejemplo n.º 1
0
 /// <summary>
 /// Returns if this entity is in water and will end up adding the waters velocity to the entity
 /// </summary>
 public override bool HandleWaterMovement()
 {
     return(WorldObj.HandleMaterialAcceleration(BoundingBox, Material.Water, this));
 }
 /// <summary>
 /// Checks if this entity is inside water (if inWater field is true as a result of handleWaterMovement() returning
 /// true)
 /// </summary>
 public override bool IsInWater()
 {
     return(WorldObj.HandleMaterialAcceleration(BoundingBox.Expand(0.0F, -0.60000002384185791F, 0.0F), Material.Water, this));
 }