Compound collision bug

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Compound collision bug

Postby JoshKlint » Mon Dec 24, 2018 12:06 am

It looks like the latest build has a problem with compound collisions. Regular bodies seem to work fine:



A similar error occurs with convex casting, causing the player to bounce up and down if they stand on the truck.
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: Compound collision bug

Postby Julio Jerez » Mon Dec 24, 2018 1:30 am

do you have test that I can try?
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Compound collision bug

Postby JoshKlint » Mon Dec 24, 2018 1:55 am

I will make a simple test and provide a debuggable EXE.
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: Compound collision bug

Postby JoshKlint » Mon Dec 24, 2018 1:46 pm

newtontest.debug.exe should be debuggable:
https://www.leadwerks.com/compoundcollisionbug.zip
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Re: Compound collision bug

Postby misho » Mon Dec 24, 2018 2:24 pm

Confirmed - This is EXACTLY what I am seeing.
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 552
Joined: Tue May 04, 2010 10:13 am

Re: Compound collision bug

Postby Julio Jerez » Mon Dec 24, 2018 7:38 pm

Michio I when to steam and register and pay teh 24.00 dollar forth game,
The they say teh game was addin to my librtary,
I spend abou hal ah hour navigation in the stem broser and no wher I see how to dowload the stupd game. how do I get the game?

tshi si what I said

An email confirmation has been sent to you.

Any digital items in this order are now registered to your account on Steam. To access your items, simply visit your library in Steam whenever you're ready.

but I do not see hwo to visit that library *.
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Compound collision bug

Postby Julio Jerez » Mon Dec 24, 2018 7:43 pm

never mind, It is installing the game now.
ther are few issues you reported let us see hwo we fix them now.
let us start for the older to the newer, but you have to list them because I do no remember.
also how do I hook your stuff?
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Compound collision bug

Postby Julio Jerez » Mon Dec 24, 2018 7:47 pm

apparently I also bought this game "kerbal space program", which I do not remember doing but is in my list.
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Compound collision bug

Postby Julio Jerez » Mon Dec 24, 2018 8:29 pm

well I play a bit, has no idea what am doing, for what I can see this is a very boring game.
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Compound collision bug

Postby misho » Tue Dec 25, 2018 4:40 am

Julio Jerez wrote:well I play a bit, has no idea what am doing, for what I can see this is a very boring game.


LOL yes - it is a VERY boring "game", because it is not a game, but a SIMULATOR. A lot of people enjoy learning how airplanes work in detail, knowing every button and function. Some real pilots practise their flights before they fly the real thing. Some people spend a lot of money building hardware instrumentation and display systems (they call it "simpits" - "simulated cockpits") to feel what it is like flying the real thing. :mrgreen:
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 552
Joined: Tue May 04, 2010 10:13 am

Re: Compound collision bug

Postby misho » Tue Dec 25, 2018 4:42 am

Julio Jerez wrote:apparently I also bought this game "kerbal space program", which I do not remember doing but is in my list.


Ha! Kerbal Space Program (KSP) is VERY close to what I am working on. It is extremely popular with over 3 million users around the world. Interesting that you purchased it!
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 552
Joined: Tue May 04, 2010 10:13 am

Re: Compound collision bug

Postby misho » Tue Dec 25, 2018 4:46 am

Julio Jerez wrote:never mind, It is installing the game now.
ther are few issues you reported let us see hwo we fix them now.
let us start for the older to the newer, but you have to list them because I do no remember.
also how do I hook your stuff?


sounds good - however - I feel bad I hijacked this thread. The author of this thread reported the exact same problem I am having, AND, he has provided a reproducible scenario. So, before we tackle my stuff:

How about you first take a look at his scenario and see what the problem is? It seems it would be a lot easier for you to look into it since he has already provided a reproducible scenario. Perhaps it fixes my stuff, or at least one part of it, and then we go from there?
Misho Katulic
CTO, FSX SpacePort
TerraBuilder
www.terrabuilder.com
misho
 
Posts: 552
Joined: Tue May 04, 2010 10:13 am

Re: Compound collision bug

Postby Julio Jerez » Tue Dec 25, 2018 9:48 am

JoshKlint wrote:newtontest.debug.exe should be debuggable:
https://www.leadwerks.com/compoundcollisionbug.zip


oh I missed that post, ok I will debug that and then see what wher we go form there.

on this Kerbal Space Program (KSP), no I did not buy that, or at least I have not downloaded, it is not in my computer, what I said is that it appears that that I ordered at some point because is listed in my games library. I never heard of that game before. My guess is that Valve put it there as a promotion because I bough a simulator game, similar to what Amazon does when you buy a book, they added a list like "People who bough this book also bough these...."
anyway I will try to fix that problem with compounds and see if that also fix your problem.
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Compound collision bug

Postby Julio Jerez » Tue Dec 25, 2018 1:17 pm

JoshKlint wrote:newtontest.debug.exe should be debuggable:
https://www.leadwerks.com/compoundcollisionbug.zip


ok I think this is fixed now, I am not sure why I added this
Code: Select all
} else if (body1->m_collision->IsType (dgCollision::dgCollisionCompound_RTTI)) {
      dgFloat32 invMass = body1->GetInvMass().m_w;
      contact->SwapBodies();
      CompoundContacts (pair, proxy);
      if (!invMass) {
         contact->SwapBodies();
      }


basically the function that calculate compound contacts assume the compound will always be the first body, but for some reason that now seems idiotic is though that I should flip the bodies order only if one was static. I never saw the bug because I do not have compound static in the sandbox.
but whatever it was there is not reason for doing it or at least I could not find any.

anyway it should be wiorking now.
Julio Jerez
Moderator
Moderator
 
Posts: 10993
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Compound collision bug

Postby JoshKlint » Wed Dec 26, 2018 1:11 pm

Convex casting seems to still have a problem:
https://www.leadwerks.com/compoundcollisionbug2.zip

Stairs on the left and truck are compounds, the rest are single collision objects. A convex cast is used for stepping up objects or stairs.
JoshKlint
 
Posts: 74
Joined: Sun Dec 10, 2017 8:03 pm

Next

Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 1 guest

cron