Sunday, December 11, 2022
HomeGame DevelopmentYoungster nodes with physics our bodies don't transfer when the dad or...

Youngster nodes with physics our bodies don’t transfer when the dad or mum is moved – Cocos Creator


Hiya

I’m making an attempt to animate a set of STATIC/ANIMATED inflexible our bodies which I’ve made the kid nodes of a standard node.

After I alter the place of the dad or mum node both immediately utilizing setPosition or by means of tweens.

  1. The kid nodes don’t transfer in case of STATIC physique kind.

  2. And within the case of ANIMATED physique the sprite strikes round, however the physics physique stays in the identical location.

I’ve hooked up the mission as effectively. Please let me know the correct strategy. Is there a approach to sync the physics our bodies.

static-move.zip (1.9 MB)


it is a bug, and i’ve created a difficulty for monitoring, thanks for the suggestions.

if you wish to transfer STATIC, attempt to set it place immediately.

https://github.com/cocos/cocos-engine/pull/13747

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments