UniVRM/Assets/VRM10/Runtime/Format/SpringBone/Format.g.cs
ousttrue d53942a7bd merge vrm10
* MeshUtility を UniGLTF 下に移動
* Assets/VRM10 を追加
* JsonSchemaからのコード生成 UniGLTF/Editor/Generator を追加
2021-01-07 13:37:24 +09:00

55 lines
1.4 KiB
C#

// This file is generated from JsonSchema. Don't modify this source code.
using System;
using System.Collections.Generic;
using UniGLTF;
using UniJSON;
namespace UniGLTF.Extensions.VRMC_springBone
{
public class SpringSetting
{
// The force to return to the initial pose
public float? Stiffness;
// Gravitational acceleration
public float? GravityPower;
// The direction of gravity. A gravity other than downward direction also works.
public float[] GravityDir;
// Air resistance. Deceleration force
public float? DragForce;
}
public class Spring
{
// Name of the Spring
public string Name;
// The index of spring settings
public int? Setting;
// The node index of spring root
public int? SpringRoot;
// The radius of spring sphere
public float? HitRadius;
// Colliders that detect collision with nodes start from springRoot
public int[] Colliders;
}
public class VRMC_springBone
{
public const string ExtensionName = "VRMC_springBone";
public static readonly Utf8String ExtensionNameUtf8 = Utf8String.From(ExtensionName);
// An array of settings.
public List<SpringSetting> Settings;
// An array of springs.
public List<Spring> Springs;
}
}