Home > other >  About performance problems when using RigidBody2D
About performance problems when using RigidBody2D

Time:09-17

Now in use the Z axis processing of game
keep out relationship betweenSo you need to modify the transform of the object. The position.
z parameter. But at the same time also need Rigidbody2D MovePosition to make objects move in the case of conform to the physical conditions (but Rigidbody2D cannot control the Z axis movement)

But now each frame at the same time make this two things happen at the same time performance would be significantly reduced when
First used in the same frame Rigidbody2D. MovePosition after get the transform of the objects. The position, the game speed can be reduced to half the normal
Could you tell me why will appear this kind of problem? Is there any way to reasonable solution?
  • Related