Skip to main content
10 events
when toggle format what by license comment
Mar 8, 2022 at 10:44 history edited Sheath9 CC BY-SA 4.0
edited title
Mar 3, 2022 at 19:13 history edited Sheath9 CC BY-SA 4.0
added 2436 characters in body
Feb 28, 2022 at 12:00 comment added DMGregory If you're able to solve the problem with this, post your solution as an answer. If not, edit your question to show your latest code/setup steps, and what problems still occur. As an aside, you probably don't want that movement code inside OnTriggerEnter — it will run only the first frame that the objects overlap, and then not again until they separate and overlap again (or one or the other teleports).
Feb 28, 2022 at 11:00 comment added Sheath9 Also, if I have additional questions regarding this specific task can I continue commenting here or should I create and entirely new Question? @DMGregory
Feb 28, 2022 at 10:32 comment added Sheath9 @DMGregory So I should add a rotation function using the rigid body instead of transform. I did a quick look on the unity documentation and see Rigidbody.MoveRotation so I'll test that out. Thank you for the help!
Feb 28, 2022 at 7:23 comment added Nikaas To add to what DMGregory said. You can think of Rigidbody as moving objects gradually taking physics into account. While using Transform can be made to look like gradual movement it always is an instantaneous "teleporting" from one pose to the next.
Feb 27, 2022 at 20:15 comment added DMGregory You're making the usual beginners' mistake of moving physics objects with the Transform component. If you want the physics engine to handle resolving collisions for you consistently, then you need to let it handle the movement, by treating the Transform as read-only and routing all changes you want to make via the Rigidbody component instead.
Feb 27, 2022 at 20:12 history edited DMGregory CC BY-SA 4.0
Major cleanup - please do this yourself next time. Images belong in the post, not on an external site, and code should always be shared as text.
S Feb 27, 2022 at 18:49 review First questions
Feb 28, 2022 at 9:39
S Feb 27, 2022 at 18:49 history asked Sheath9 CC BY-SA 4.0