示例#1
0
        public EntityStaticBody(string modelPath, bool drawn = true) : base(modelPath)
        {
            Drawn = drawn;
            if (!drawn)
            {
                DrawInstanced = false;
            }

            MovementController = new MovementControllerRigidBody(this);
            RigidBody.Static   = true;
        }
示例#2
0
        public EntityDie(GL gl, string modelPath) : base(modelPath)
        {
            RigidBodyController = new MovementControllerRigidBody(this, false);
            RigidBody.CollisionTransform.Scale = new vec3(.97f);

            LerpCurve = new BezierCurve(new vec2(1, 0), new vec2(.61f, .94f));

            Outliner = new Outliner(gl, this)
            {
                Enabled = false
            };

            DrawInstanced = false;
            //dm = new LineMesh(colors: new vec3[] { new vec3(.7f, .2f, .3f), new vec3(.7f, .2f, .3f) });
        }