Jump to content
Taylor1984

Detect if object hits roof etc

Recommended Posts

Hi

 

I want to make a destroyed quadcopter explode once it hits the ground, a building, rock, tree and any other object that's in the way of its fall.

 

I know how to use 

getPosATL quadcopter select 2 <= 1

to detect when it hits the ground but for eg buildings nothing happens once it hits the roof. I thought ATL would work for any terrain.

 

Thanks

Share this post


Link to post
Share on other sites

Nope, ATL means exactly that, Above Terrain Level.

Have a sniff around the boundingbox commands. The boundingboxes are unreliable for X and Y of buildings, but for the Z, ie the height, they are pretty good. With some trick code, you should be able to sense when the quadcopter is within the boundingbox.

https://community.bistudio.com/wiki/boundingBoxReal

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

×