ISkeletonViewer.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Defines the options associated with the creation of a SkeletonViewer.
  3. */
  4. export interface ISkeletonViewerOptions{
  5. /** Should the system pause animations before building the Viewer? */
  6. pauseAnimations: boolean;
  7. /** Should the system return the skeleton to rest before building? */
  8. returnToRest: boolean;
  9. /** public Display Mode of the Viewer */
  10. displayMode: number;
  11. /** Flag to toggle if the Viewer should use the CPU for animations or not? */
  12. displayOptions : ISkeletonViewerDisplayOptions;
  13. /** Flag to toggle if the Viewer should use the CPU for animations or not? */
  14. computeBonesUsingShaders : boolean;
  15. }
  16. /**
  17. * Defines how to display the various bone meshes for the viewer.
  18. */
  19. export interface ISkeletonViewerDisplayOptions{
  20. /** How far down to start tapering the bone spurs */
  21. midStep? : number;
  22. /** How big is the midStep? */
  23. midStepFactor? : number;
  24. /** Base for the Sphere Size */
  25. sphereBaseSize? : number;
  26. /** The ratio of the sphere to the longest bone in units */
  27. sphereScaleUnit? : number;
  28. /** Ratio for the Sphere Size */
  29. sphereFactor? : number;
  30. }