mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 15:08:02 -05:00
* MeshUtility を UniGLTF 下に移動 * Assets/VRM10 を追加 * JsonSchemaからのコード生成 UniGLTF/Editor/Generator を追加
55 lines
1.4 KiB
C#
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;
|
|
}
|
|
}
|