Hey guys, been hunting around for an answer to this but having a bit of trouble. I'm importing some custom models into the game as units. I see in the data editor their is a radius you can set to detect collision, but this seems to put a circle around the unit, that does not at all follow the contours of the unit. I have a unit that is approx. the shape of the Hellion, so when I set that circle to cover the entire unit, there is a large area on either side of the unit where it "collides", but it is only thin air. Now I've tested the Hellion in-game and it doesn't seem to have this problem. I'm wondering if anyone knows a solution to this?
Collision has been causing quite a few problems I've noticed. As far as I know so far, collision is done through spheres only. I'd have to look closer at the Helion to see how the collision is achieved, but I get the feeling it's done through attachment points. At the moment you can't control the collision sphere for the model on export, it's automatically exported using the extents of the model. Once I get time to update the script, I'd like to add collision sphere support and I'll look into the helion and see how the altered collision in the model works.
Hey guys, been hunting around for an answer to this but having a bit of trouble. I'm importing some custom models into the game as units. I see in the data editor their is a radius you can set to detect collision, but this seems to put a circle around the unit, that does not at all follow the contours of the unit. I have a unit that is approx. the shape of the Hellion, so when I set that circle to cover the entire unit, there is a large area on either side of the unit where it "collides", but it is only thin air. Now I've tested the Hellion in-game and it doesn't seem to have this problem. I'm wondering if anyone knows a solution to this?
Attached is a picture trying to describe what I mean. The black rectangle would be the unit, and the red where the game detects collision. http://img202.imageshack.us/img202/5190/collisionn.png
Collision has been causing quite a few problems I've noticed. As far as I know so far, collision is done through spheres only. I'd have to look closer at the Helion to see how the collision is achieved, but I get the feeling it's done through attachment points. At the moment you can't control the collision sphere for the model on export, it's automatically exported using the extents of the model. Once I get time to update the script, I'd like to add collision sphere support and I'll look into the helion and see how the altered collision in the model works.
If you have looked closely at the hellion you may see that the front and back don't collide. The circle is basically smaller than you might think.