Skip to content

Taptic Engine with full source code for iOS and Android

License

Notifications You must be signed in to change notification settings

chromealex/TapticEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TapticEngine

Taptic Engine with full source code for iOS and Android (AnimationCurve supported)

drawing drawing drawing drawing

Code usage sample

public AnimationCurve curve;
private ME.Taptic.ITapticEngine taptic;

void Start() {
  
  this.taptic = new ME.Taptic.TapticEngine();
  this.taptic.SetActiveModule(new ME.Taptic.TapticAnimationCurveImpl());  // You can implement your own behaviour to solve taptic curves
  this.taptic.SetMaxChannels(3);  // Here you can set max channels count
  
}

void Update() {
  
  this.taptic.Update(); // we need to get updates every frame
  
}

void Play() {
  
  this.taptic.PlayCurve(this.curve, randomize: true); // randomize parameter will play random variant adjusted to amlitude & duration
  
  this.taptic.PlaySingle(ME.Taptic.TapticType.Selection); // play single vibration effect
  
}

About

Taptic Engine with full source code for iOS and Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published