b2dMeshClipFPS

Authoring frame rate of an animation clip.

2D Overlay

Parameters & Returns

Parameters

handle Int
clip Int

Returns

Double

Quick Summary

Authoring frame rate of an animation clip.

Technical Exegesis...

Returns the frames-per-second the clip was baked at (set in the IDE converter). Multiply elapsed seconds by this to find your position within the clip's frames, then split into a whole frame index + a fractional blend t for b2dMeshAnimate.

Example

Example.bam
Local fps:Double = b2dMeshClipFPS(mesh, clip)
Local fpos:Double = animTime * fps