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); }
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); }