variable emitters + obstacles

All information about Magic Particles: news, question, comments, etc.

variable emitters + obstacles

Postby foofel » Mon Nov 28, 2016 6:37 pm

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?
foofel
 
Posts: 9
Joined: Thu Jul 09, 2015 11:59 am

Re: variable emitters + obstacles

Postby foofel » Tue Dec 13, 2016 3:50 pm

no answers? :(
foofel
 
Posts: 9
Joined: Thu Jul 09, 2015 11:59 am

Re: variable emitters + obstacles

Postby Odin_KG » Wed Feb 08, 2017 10:24 am

You may add any obstacles with the help of Magic_CreateObstacle(). If you work with 2D, the obstacles consist of SEGMENTS.
User avatar
Odin_KG
Administrator
Administrator
 
Posts: 255
Joined: Sat May 09, 2009 10:53 pm


Return to Magic Particles

Who is online

Users browsing this forum: No registered users and 3 guests

cron