Ejemplo n.º 1
0
        public BodyHandler(VitricBoss parent)
        {
            this.parent = parent;

            chain = new VerletChainInstance(true);
            chain.segmentCount        = 8;
            chain.customDistances     = true;
            chain.drag                = 1.1f;
            chain.segmentDistanceList = new List <float>()
            {
                100, 100, 48, 36, 32, 32, 32, 32
            };
        }
Ejemplo n.º 2
0
        public VitricBossSwoosh(Vector2 offset, int length, VitricBoss parent)
        {
            position    = offset;
            this.parent = parent;

            chain = new VerletChainInstance(true)
            {
                segmentCount          = length,
                segmentDistance       = 8,
                constraintRepetitions = 2,
                drag                = 1.5f,
                forceGravity        = new Vector2(0f, 0.25f),
                gravityStrengthMult = 1f
            };
        }