Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.16 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.16 KB

PenMotion

Language badgeOS badgeState badge

Summary

Motion Easing Editor & API

How to use Editor

On editing context

Panning
Space + Mouse Left Drag
Zoom
Ctrl + Space + Mouse Left Drag

Add control point
Ctrl + Mouse Left Click
Remove control point
Alt + Mouse Left Click



How to use API

using PenMotion;void RegisterMotion() {
  PMotionQuery.LoadFile("C:\motionFile.pmotion", "CustomKey");
}

void UseMotion() {
  for(float time=0f; time<1f; time+=0.01f) {
    float motionTime = PMotionQuery.GetMotionValue("CustomKey", "MotionName", time);
    
    UI.Position = new Vector2(motionTime, 0f);
    
    //It's just example. please don't use it.
    //maybe GameEngine's function is better than this.
    Thread.Sleep(16);
  }
}



Preview

Honeycam_20220919_224543