This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
public class DBController : MonoBehaviour | |
{ | |
public Transform[] Bones; | |
[Range(0f, 1f)] public float Damping, Elasticity, Stiffness, Inert; | |
public float Radius; | |
public AnimationCurve DanpingDistrib, ElasticityDistrib, StiffnessDistrib, InertDistrib, RadiusDistrib; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hexNumRefToString(hexNumRef) { | |
return hexNumRef.replace(/&#x([0-9a-f]+);/ig, function(match, $1, idx, all) { | |
return String.fromCharCode('0x' + $1); | |
}); | |
} | |
function decNumRefToString(decNumRef) { | |
return decNumRef.replace(/&#(\d+);/ig, function(match, $1, idx, all) { | |
return String.fromCharCode($1); | |
}); | |
} |