Jump to content
Sign in to follow this  
dmarkwick

Drop command & getPosASL, setPosASL

Recommended Posts

When using the drop command I can set the particle to appear where I want using an array representing the position.

The problem is, it's position at relative to ground zero, not sea level. So if I'm using the PositionASL array format, using this in the Drop command means having the particles spawn some distance up in the air.

I need the PositionASL to work in situations where the object is resting on top of another object, for example an object on (or in) a building.

Is there any workaround?

Share this post


Link to post
Share on other sites

Set an object on ground below the particle spawn. Get his height above sea level, subtract those levels and you get the spawn height.

Share this post


Link to post
Share on other sites

Thanks for the reply iOnOs, but the solution turned out to be simpler (and one I should have known ;))

The very last parameter of the Drop command is an object reference, when specified the particles spawn relative to this object, including it's height.

As I said, I should have known :D

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×