How to get full particle buffers? (particleSystem.GetPositionBuffer(), etc) #22
Answered
by
SammyJoeOsborne
SammyJoeOsborne
asked this question in
Q&A
-
Any advice for working with the various buffers of the particle system? Other liquidfun js ports provide an array when you call GetPositionBuffer() or GetVelocityBuffer(), but this seems to return the first b2vec2. |
Beta Was this translation helpful? Give feedback.
Answered by
SammyJoeOsborne
Mar 10, 2021
Replies: 1 comment
-
I can't believe I figured this out because I don't fully understand it, but I figured it had to be something with reifying the Array using the pointer to the head b2Vec2. Sure enough:
that seems to do the trick. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SammyJoeOsborne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't believe I figured this out because I don't fully understand it, but I figured it had to be something with reifying the Array using the pointer to the head b2Vec2. Sure enough:
that seems to do the trick.