Get the y position of a whole group of particles.



Argument Description
group The particle group to get.

Returns: Real


With this function you can retrieve the y position in the room of a group of particles. The group value is that which was returned when you created the group of particles using the function physics_particle_group_end, and the function will return a value which is the combined value of the currently set flags.


xx = physics_particle_group_get_x(group1);
yy = physics_particle_group_get_y(group1);

The above code will get the x and y positions of the particle group indexed in the variable "group1" and store them in variables.

Back: Soft Body Particles
Next: physics_particle_group_get_angle
© Copyright YoYo Games Ltd. 2018 All Rights Reserved