You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a documentation problem, or a problem with my understanding.
The example code provided in the project's README does not work. I copy/pasted the code in the README, but instead of using frame.time.update({ in the update method, I needed to use frame.c.time.update({ as I got the error that frame.time was undefined.
Similarly, when modifying the example Gravity system, I noticed that:
frame.time seems like it should be frameInfo.c.time
Similarly, the vector.my line in the above code looks like it should actually be vector.vector.my as the vector variable seems to be a wrapper. There is no my property on vector.
I just started exploring this library today, but these issues are extremely confusing. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a documentation problem, or a problem with my understanding.
The example code provided in the project's README does not work. I copy/pasted the code in the README, but instead of using
frame.time.update({
in theupdate
method, I needed to useframe.c.time.update({
as I got the error thatframe.time
was undefined.Similarly, when modifying the example
Gravity
system, I noticed that:Seems to have two separate errors:
frame
should beframeInfo
frame.time
seems like it should beframeInfo.c.time
Similarly, the
vector.my
line in the above code looks like it should actually bevector.vector.my
as thevector
variable seems to be a wrapper. There is nomy
property onvector
.I just started exploring this library today, but these issues are extremely confusing. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: