mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-24 03:51:23 -05:00
refactor: update constraint spec URL on comments
This commit is contained in:
parent
d058be96f6
commit
244e7b1947
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
namespace UniVRM10
|
||||
{
|
||||
/// <summary>
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_draft/schema/VRMC_node_constraint.aimConstraint.schema.json
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_beta/schema/VRMC_node_constraint.aimConstraint.schema.json
|
||||
/// </summary>
|
||||
[DisallowMultipleComponent]
|
||||
public class Vrm10AimConstraint : MonoBehaviour, IVrm10Constraint
|
||||
|
|
@ -49,7 +49,7 @@ namespace UniVRM10
|
|||
_dstRestLocalQuat = transform.localRotation;
|
||||
}
|
||||
/// <summary>
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_draft/README.ja.md#example-of-implementation-1
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_beta/README.ja.md#example-of-implementation-1
|
||||
///
|
||||
/// fromVec = aimAxis.applyQuaternion( dstParentWorldQuat * dstRestQuat )
|
||||
/// toVec = ( srcWorldPos - dstWorldPos ).normalized
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using UnityEngine;
|
|||
namespace UniVRM10
|
||||
{
|
||||
/// <summary>
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_draft/schema/VRMC_node_constraint.rollConstraint.schema.json
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_beta/schema/VRMC_node_constraint.rollConstraint.schema.json
|
||||
/// </summary>
|
||||
[DisallowMultipleComponent]
|
||||
public class Vrm10RollConstraint : MonoBehaviour, IVrm10Constraint
|
||||
|
|
@ -47,7 +47,7 @@ namespace UniVRM10
|
|||
_dstRestLocalQuat = transform.localRotation;
|
||||
}
|
||||
/// <summary>
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_draft/README.ja.md#example-of-implementation
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_beta/README.ja.md#example-of-implementation
|
||||
///
|
||||
/// deltaSrcQuat = srcRestQuat.inverse * srcQuat
|
||||
/// deltaSrcQuatInParent = srcRestQuat * deltaSrcQuat * srcRestQuat.inverse // source to parent
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
namespace UniVRM10
|
||||
{
|
||||
/// <summary>
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_draft/schema/VRMC_node_constraint.rotationConstraint.schema.json
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_beta/schema/VRMC_node_constraint.rotationConstraint.schema.json
|
||||
/// </summary>
|
||||
[DisallowMultipleComponent]
|
||||
public class Vrm10RotationConstraint : MonoBehaviour, IVrm10Constraint
|
||||
|
|
@ -33,7 +33,7 @@ namespace UniVRM10
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_draft/README.ja.md#example-of-implementation-2
|
||||
/// https://github.com/vrm-c/vrm-specification/blob/master/specification/VRMC_node_constraint-1.0_beta/README.ja.md#example-of-implementation-2
|
||||
///
|
||||
/// srcDeltaQuat = srcRestQuat.inverse * srcQuat
|
||||
/// targetQuat = Quaternion.slerp(
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ namespace UniVRM10
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// https://github.com/vrm-c/vrm-specification/tree/master/specification/VRMC_node_constraint-1.0_draft
|
||||
/// https://github.com/vrm-c/vrm-specification/tree/master/specification/VRMC_node_constraint-1.0_beta
|
||||
///
|
||||
/// * roll
|
||||
/// * aim
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user