Пример #1
0
        private Bridge addBridge(Island isl, Vector3 dir, Vector3 pos)
        {
            var b = new Bridge(new Level(null), isl.Node.CreateChild());

            b.Node.Relative = Matrix.Invert(Matrix.LookAtRH(pos, pos + dir, Vector3.UnitY));
            isl.AddAddon(b);
            return(b);
        }