Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Individual particle coordinates
Started by sam_throwaway Sep 28 2016 05:37 PM

1 reply to this topic
particle coordinates liquidfun libgdx java velocity
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sam_throwaway

[GLOBAL: userInfoPane.html]
sam_throwaway
  • Observer

  • 3 posts
  • Corona SDK

How do I get individual particle coordinates after I have used createParticle();

 

I need to use these coordinates for various things.

 

I also need to deliver an impulse or velocity to these individual particles.

 

How do I do this? I'm using LiquidFun, Libgdx and Java

 

Thank you



[TOPIC: post.html]
#2

sam_throwaway

[GLOBAL: userInfoPane.html]
sam_throwaway
  • Observer

  • 3 posts
  • Corona SDK

If anyone's interested, to get the coordinates, you have to use

float particleCoordinateX = mParticleSystem.getParticlePositionBufferX[i];

float particleCoordinateY = mParticleSystem.getParticlePositionBufferY[i];

where i is the particle array number

 

Continuing on from my previous question.

How do I add to the individual particle velocity?




[topic_controls]
[/topic_controls]



Also tagged with one or more of these keywords: particle, coordinates, liquidfun, libgdx, java, velocity