Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by Witek900 » Tue Jan 05, 2010 2:19 pm
I've created materials manager in my engine and it works OK. I can set collisions sound to each physics material etc. But now i want to make some materials no-collidable but i can't do this. I use NewtonOnAABBOverlap callback and return always 0, but all bodies still collide and dont have sounds, etc (made in NewtonContactsProcess). What's wrong? I also tried to disable all collisons by NewtonMaterialSetDefaultCollidable but it works exactly like with
NewtonOnAABBOverlap
{
return 0;
}
But for example NewtonMaterialSetDefaultElasticity ok.
-
Witek900
-
- Posts: 38
- Joined: Mon Jan 26, 2009 1:29 pm
- Location: Warsaw
by Julio Jerez » Tue Jan 05, 2010 2:39 pm
I use NewtonOnAABBOverlap callback and return always 0, but all bodies still collide and dont have sounds, etc (made in NewtonContactsProcess). What's wrong? I also tried to disable all collisons by NewtonMaterialSetDefaultCollidable but it works exactly like with
both option should work fine, it is long tiem I do no test that but is soudl work without any problems
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Witek900 » Tue Jan 05, 2010 3:16 pm
It does not work. When apply this to each material pair:
- Code: Select all
NewtonMaterialSetDefaultCollidable(NW, PhysicsMaterials[i]->GroupId, PhysicsMaterials[j]->GroupId, 0);
some materials collide and some no and collision callback doesn't work then.
Although,
- Code: Select all
NewtonMaterialSetDefaultElasticity(NW, PhysicsMaterials[i]->GroupId, PhysicsMaterials[j]->GroupId, 1.0f);
works excelent.
-
Witek900
-
- Posts: 38
- Joined: Mon Jan 26, 2009 1:29 pm
- Location: Warsaw
by Julio Jerez » Tue Jan 05, 2010 8:57 pm
Ok I check it out
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Witek900 » Wed Jan 06, 2010 1:35 pm
I was using Newton 2.15. Now, i've downloaded 2.16 and it works OK. So it was 2.15 version bug
-
Witek900
-
- Posts: 38
- Joined: Mon Jan 26, 2009 1:29 pm
- Location: Warsaw
by Julio Jerez » Wed Jan 06, 2010 2:50 pm
Ha that may be, there are ton of Bugs in 2.15 because I build it with beta VS2010 and I made lots of refactoring according to VS recomendation and teh resutl is lot of bug.
mosutli because of VS do no liek Varible renaming and I use that a lot, su when I try to make fridnle to VS i added teh bugs.
Glad you foudn eth problem everyone should be in 2.16
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Witek900 » Wed Jan 06, 2010 3:34 pm
So maby You should delete this bugged 2.15 version form downloads list
-
Witek900
-
- Posts: 38
- Joined: Mon Jan 26, 2009 1:29 pm
- Location: Warsaw
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 7 guests