Hi, I use FP3 to make a game based on something like a car firing bullets and I had some problems involving the CCD.
The car's weels were snagging on the edges or curves of the "ground" 😠 . I tried to disable CCD, but then the bullets were tunnelling through the ground... 😢
So I decided to get rid of these problem by disabling the CCD, but only on the car's weels.
To do that, I created a new flag 👿 and a property to access it. When the new "IgnoreCCD" flag is set, the related body will be ignored by the CCD solver (Toi flag not activated)
I then had another problem : without CCD, the car's weels were tunneling through other dynamic bodies.
So I added a second flag : "IgnoreStaticCCD" and a property to access it.
This second flag disables CCD for the related body, but only when the other body is static. If "Isbullet" is set, CCD with dynamic bodies will be enabled, even if my flag is set.
Now, my car can go fast without snagging, and I can use CCD for my bullets in the same time.
I posted these mods on the FP3 forum, but Genbox suggested me to post them here, so it's done, now 😀
The car's weels were snagging on the edges or curves of the "ground" 😠 . I tried to disable CCD, but then the bullets were tunnelling through the ground... 😢
So I decided to get rid of these problem by disabling the CCD, but only on the car's weels.
To do that, I created a new flag 👿 and a property to access it. When the new "IgnoreCCD" flag is set, the related body will be ignored by the CCD solver (Toi flag not activated)
I then had another problem : without CCD, the car's weels were tunneling through other dynamic bodies.
So I added a second flag : "IgnoreStaticCCD" and a property to access it.
This second flag disables CCD for the related body, but only when the other body is static. If "Isbullet" is set, CCD with dynamic bodies will be enabled, even if my flag is set.
Now, my car can go fast without snagging, and I can use CCD for my bullets in the same time.
I posted these mods on the FP3 forum, but Genbox suggested me to post them here, so it's done, now 😀