Collision problem, WED? [SOLVED]

Posted By: Danbannan

Collision problem, WED? [SOLVED] - 11/11/09 21:52

Hi, i have made a level with 4 corridor leading to rooms.

My problem is that when i try to move my ball into the corridors it collides! Its like a barrier in the air but it is nothing there!

Gamestudio Comm 7.80
3ds Max
Win 7



Render 3ds max

Screenshot 3ds max

Screenshot MED

Screenshot WED

Barrier




Posted By: Enduriel

Re: Collision problem, WED? - 11/11/09 22:13

Did you set the polygon flag in the properties of the model? You can also set it in script inside the action with set(my, POLYGON);

this activates polygonal collision for that object when an entity uses c_move or physics based forces, in this case the ball.
Posted By: Danbannan

Re: Collision problem, WED? - 11/11/09 23:57

Thanks for the reply Enduriel!

Yes, i have set the polygon flag, with no luck. The ball is working just fine if i drop in a big room with 4 walls. I have tried with just quad's in mesh, tri's in mesh and with a "shell around the mesh to give it thickness, so far no luck. This is very wierd. Could you or anyone else in that case look at my project setup? I would appreciate it alot. Btw, great software, lots of opportunity!
Posted By: jcl

Re: Collision problem, WED? - 11/12/09 11:19

Of course you must NOT set the polygon flag here. That's a flag for experts only.

The most obvious reason of such a problem is that the ball's collision hull is too big for fitting through small corridors.

For giving the ball a smaller than the default hull, either set its BBox flag in WED, or call c_setminmax to set it to the ball's visual size, or set min_x, max_x, and FAT|NARROW manually in the script.

BTW, you can easily see the ball's collision hull by pressing F11 twice.
Posted By: Danbannan

Re: Collision problem, WED? - 11/12/09 11:56

jcl: Thanks for the help, i found out that it have nothing to do with my models at all! is the commercial version limited that much in level size? I have tried all there is and cant see other than that the level size is limited down alot! What are your thoughts? Look at the map and the ball size inside the corridor. is there any chance that i am going into a kind of invisible barrier that is the limit of the map size?
Posted By: jcl

Re: Collision problem, WED? - 11/12/09 13:24

No, there is no such limit. Only BSP levels have a size limit that you can set in the map compiler, but this only affects BSP tree generation, not the OBB collision detection.

There can only be a barrier when you placed it in WED. But check if you've accidentally set some exotic collision modes or flags, such as AABB or POLYGON.
Posted By: Danbannan

Re: Collision problem, WED? - 11/12/09 15:37

I solved the problem, i curved the turn alittle and volá :-)
© 2024 lite-C Forums