示例#1
0
        public void TestPhysicsFileParsing()
        {
            var physics = new CubismPhysics(model, loadJsonFile <CubismPhysicsSetting>(@"Hiyori.physics3.json"));

            Assert.DoesNotThrow(() => physics.Update(1));
        }
 public CubismSpriteWithPhysics(CubismModel model, IEnumerable <Texture> textures, bool disposeModel = false)
     : base(model, textures, disposeModel)
 {
     using var reader = new StreamReader(TestResources.GetModelResource(@"Hiyori.physics3.json"));
     physics          = new CubismPhysics(model, JsonSerializer.Deserialize <CubismPhysicsSetting>(reader.ReadToEnd()));
 }