Jump to content

No vehicle collision with objects added with the Forest editor. Bug?


LoLJester

Recommended Posts

I'm also posting here for someone that may know what the issue may be.

Collision failure with forest items that have two or more collisions (Collision-1, Collision-2, Collision-3, etc.) They collide fine with the player, but not with vehicles. If I use them as TSStatics, they work fine, but not when used with the Forest Editor. Sometimes, even objects with one collision fail to collide with vehicles. I'm using T3D 1.2. Has anything been added to the newest version to fix this? Or is there a fix?

Link to comment
Share on other sites

Why would you want to have multiple collisionmeshes? I usually just take the trunk and maybe big branches, separate them and make them the collisionmesh. I vaguely remember sometimes vehicles not colliding well with trees, but it was not that bad that I saw it as an issue and I never used vehicles much.

Ok I did some tests and indeed collision is broken for trees, but it seems only for some trees, I tested one level of mine and the pine trees almost always collided properly, but the birch trees almost never, so for some reason the engine dislikes birch trees, so that may be a hint. Also collisions on vehicles are generally problematic, I had the vehicle glitching out on complex shapes a few times as well as some other bugs with vehicles that caused me to not consider using them. Maybe you can ask @Nils he said he will implement vehicles in his game in the next version so I'm pretty sure he already ran into several of the obvious vehicle related bugs.

Link to comment
Share on other sites

I just ended up using both methods. For shapes with more complex collisions, such as rocks, I just placed them as TSStatic with collisionType = "Collision Mesh" For shapes with a simple collision shape, I used the Forest editor.

From all the tests that I have done, adding Convex Hulls collisions in the Shape editor seems to work better with the Forest editor. The Shape editor's collisions tab has many options that will help you get the right type of convex collision shape, from complex to simple. 

Link to comment
Share on other sites

It would be interesting to find out why some trees do not collide properly, but others do. I also tried placing other objects such as rocks with the forest editor, but it occasionally created weird unexplainable bugs so I never did it again.

I would not use anything other than the actual trunk model of a tree as collision because it will have weird effects on the gameplay like blocking players or shots, the whole collisionmesh thing is mostly nonsense as you would almost always use the visible mesh, except for stuff like vegetation you are not supposed to collide with and for playermodels that have like 15k polygons which will create lag otherwise.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...