Piping

Discussion in 'Mechanics' started by Ponti, Dec 17, 2013.

  1. Ponti

    Ponti Subatomic Cosmonaut

    [water/poison/lava/fluid sand/etc is now known as fluidable]


    Piping is an Addon for the great fluidable gravity mechanics.
    A pipe is needed to be put somewhere on foreground on a map.
    General idea is to map a start point with an end point of a piping.
    Code:
    A is mapped with B
      //||===|B
      ||
      --
      --
      ||
    A|//
    
    I don't know how the fluid-mechanics are implemented. If it all is based on the whole planet image-map there needs to be another previous handled function.

    pipe types are allready available:

    horizontal pipe
    Code:
    |===|


    vertical pipe
    Code:
    --
    ||
    ||
    --


    edge pipe
    Code:
      --
      ||
    |=//

    In addition of empty positions a pipe is now a legal target for a fuidable. So a fluidable may fall into a pipe or push into a pipe.
    If there's a mapping (A is mapped to B in a mapping-list), then the fluid gravity comparison takes A and B instead of hight level of the comparison.

    There's a high chance this can not be done depending on the algorithms used in fluid-mechanics. But I like the idea :)

    Refering water pump *bubble bubble*



    Ssstab all Hylotl!
     
    Last edited: Dec 17, 2013
    Giraffasaur, Harlander and Fromage like this.
  2. Harlander

    Harlander Scruffy Nerf-Herder

    This is cool, but why not just call them 'fluids'? Are you trying to make them seem like a Java interface?

    Code:
    public class Lava implements Fluidable
     
    Ponti likes this.
  3. Ponti

    Ponti Subatomic Cosmonaut

    dunno the implementation, even haven't thought about the application using Java or another language :)
    Fluidable sounds like something a workmate would say, depends on the framework, but yes :)
     

Share This Page