Hi everybody,
I’m changing the velocity and orientation of the Character ( technically of the UPrimitiveComponent that I assigned the Actor’s root to ), via adding impulse force and impulse angular force (torque in Physx). I use the impulses on the FBodyInstance object of the PrimitiveComponent.
The problem is whenever I use the function FBodyInstance::AddAngularImpuse(const FVector &Impulse, bool bVelChange)with bVelChange = true, after a while of playing (sometimes 15 seconds, sometime several minutes), suddenly all the actors that have UPrimitiveComponents, especially those with Physics is set to simulate, all of those actors freeze, every thing else in the game keeps working fine and the game doesn’t at all crash, but the objects that are subject to any impulse are dead, they never move.
There is not Log error on any comment in the Log what so ever.
Interestingly, when I use the same FBodyInstance on a UPrimitiveComponent, that I couple transformation with an AActor, using only AddImpulses and no AddAngularImpulses, then the whole problem never appears, suggesting something to do with the angular impulse.
Any idea?