简体   繁体   中英

Rigidbodies moving without input when two levels are connected

I am trying to make to make a game in Unity where you collide with the button to open the door and access the next level. When the two levels are disconnected, like in the first picture, it functions perfectly and the player and doors do not move until a force is applied to them.

断开级别 But, if I change it so that the two levels are joined together, like the second picture, the player and doors begin to slowly move, which is proving to be quite problematic for my game.

连接级别

I don't think this has anything to do with my scripts, I think this is just to do with Unity.

I don't understand why this is happening only when the levels are connected, so if anyone has any ideas or fixes, I'd greatly appreciate it. Thanks!

Maybe it has something to do with colliders, if any are attached to connecting parts of the levels. You can try to shorten them a bit on one or both sides and see if it works.

碰触 对撞机可能会导致施加意外力。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM