mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-13 16:49:54 -05:00
67 lines
1.8 KiB
C#
67 lines
1.8 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 SpringBoneJoint
|
|
{
|
|
// Dictionary object with extension-specific objects.
|
|
public glTFExtension Extensions;
|
|
|
|
// Application-specific data.
|
|
public glTFExtension Extras;
|
|
|
|
// The node index.
|
|
public int? Node;
|
|
|
|
// The radius of spring sphere.
|
|
public float? HitRadius;
|
|
|
|
// 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;
|
|
|
|
// When enabled, this joint will skip Spring processing.
|
|
public bool? Exclude;
|
|
}
|
|
|
|
public class Spring
|
|
{
|
|
// Name of the Spring
|
|
public string Name;
|
|
|
|
// Joints in this spring. Except for the first element, the parent of the element must be the previous element of the array
|
|
public List<SpringBoneJoint> Joints;
|
|
|
|
// 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);
|
|
|
|
// Dictionary object with extension-specific objects.
|
|
public glTFExtension Extensions;
|
|
|
|
// Application-specific data.
|
|
public glTFExtension Extras;
|
|
|
|
// An array of springs.
|
|
public List<Spring> Springs;
|
|
}
|
|
}
|