コード例 #1
0
        public HitPlane GenerateGlassHit()
        {
            var glassHit = new HitPlane(new Vertex3D(0, 0, -1), _data.GlassHeight);

            glassHit.SetElasticity(0.2f);
            return(glassHit);
        }
コード例 #2
0
        public HitPlane GenerateGlassHit(IItem item)
        {
            var glassHit = new HitPlane(new Vertex3D(0, 0, -1), _table.GlassHeight, item);

            glassHit.SetElasticity(0.2f);
            glassHit.ItemIndex   = _table.Index;
            glassHit.ItemVersion = _table.Version;
            return(glassHit);
        }