Skip to content

ttoowa/PenMotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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