cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
8.6k stars 2k forks source link

Trail module in the particle system leaves a gap #13951

Open OnlyKoei opened 1 year ago

OnlyKoei commented 1 year ago

Cocos Creator version

3.6.2

System information

window 10

Issue description

Force motion of a parent node with rigid body components,trail module in the particle system leaves a gap https://discuss.cocos2d-x.org/t/trail-module-in-the-particle-system-leaves-a-gap/57938

if you use applyLocalImpulse to make the rigidbody parent node move,the display will look like this: image image

If you do not use applyLocalImpulse to make the rigidbody parent node move, the display will look like this: image image

Relevant error log output

No response

Steps to reproduce

demo: trail-module-tests-main.zip

Minimal reproduction project

No response

lealzhan commented 1 year ago

It seems that sometimes PhysicsSystem doesn't simulate if the physics simulation time step is larger than the engine time step. This causes your problem. image Reducing the physics simulation time step to a value much smaller than engine time step should solve your problem. image

lealzhan commented 1 year ago

https://github.com/cocos/cocos-engine/issues/11342

dev-kasibhatla commented 1 year ago

When can we expect a resolution? @pandamicro This issue is affecting our product.