コード例 #1
0
        public HitPlane GeneratePlayfieldHit()
        {
            var playfieldHit = new HitPlane(new Vertex3D(0, 0, 1), _data.TableHeight);

            playfieldHit
            .SetFriction(_data.GetFriction())
            .SetElasticity(_data.GetElasticity(), _data.GetElasticityFalloff())
            .SetScatter(MathF.DegToRad(_data.GetScatter()));
            return(playfieldHit);
        }
コード例 #2
0
        public HitPlane GeneratePlayfieldHit(IItem item)
        {
            var playfieldHit = new HitPlane(new Vertex3D(0, 0, 1), _table.TableHeight, item);

            playfieldHit
            .SetFriction(_data.GetFriction())
            .SetElasticity(_data.GetElasticity(), _data.GetElasticityFalloff())
            .SetScatter(MathF.DegToRad(_data.GetScatter()));
            playfieldHit.ItemIndex   = _table.Index;
            playfieldHit.ItemVersion = _table.Version;
            return(playfieldHit);
        }