Page 1 of 1

variable emitters + obstacles

PostPosted: Mon Nov 28, 2016 6:37 pm
by foofel
Hey, i wanted to know if it is possible to programatically set the length of an emitter. e.g. for a rifle it should only go till a wall, therefore the distance must be variable but i cant find anything for that in the docs. second is obstacles. i have a large world of box2d bodies. is is feasible to just add all polygons/triangles as obstacles or is there a better way?

Re: variable emitters + obstacles

PostPosted: Tue Dec 13, 2016 3:50 pm
by foofel
no answers? :(

Re: variable emitters + obstacles

PostPosted: Wed Feb 08, 2017 10:24 am
by Odin_KG
You may add any obstacles with the help of Magic_CreateObstacle(). If you work with 2D, the obstacles consist of SEGMENTS.