geckosio / snapshot-interpolation

A Snapshot Interpolation library for Real-Time Multiplayer Games.
BSD 3-Clause "New" or "Revised" License
277 stars 25 forks source link

Bug with calcInterpolation regex #3

Closed cfortuner closed 4 years ago

cfortuner commented 4 years ago

Hey! Not urgent, but I found this bug today:

Screen Shot 2020-07-04 at 2 55 05 PM

Given the following schema:

{
   r: number
}

and these params:

calcInterpolation('rad(r)')

the matcher found 2 results and added an extra 'd' to the snapshot. I'm not sure if the 'r' value was updated.

yandeu commented 4 years ago

It's r(rad) not rad(r) :smiley:

I will quickly update the docs do make it more clear.

cfortuner commented 4 years ago

ah! My fault. Thanks yandeu!