Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DigitalCyclone · Feb 15, 2020 at 02:20 PM · runtimestaticgroundshiftonly

GameObject shifts on it's own

So I haven't actually found this ANYWHERE no matter how hard i research it.

Anyway, little bit of backstory: i'm working on a city type map for my game. Everything's going fine, until one day all of a sudden the physics just go crazy. My character ends up floating, and if they actually touch the floor instead of going all jesus, they fall through it.

First thought in my mind was that it was a physics bug, but i've experimented alot and found that it's actually something way weirder, which was that the ground itself was just moving on it's own.

The thing that's even crazier, however, is that it's not just me. I've never actually made any scripts which move the ground in any way, and the ground is static anyway, so it won't even work.

I've even went as far as to recreate the entire terrain, but it still has the same issue, WITH THE SAME EXACT TERRAIN PIECE. I've even tried renaming it, but to no avail. I'm quite literally ripping my hair out.

EDITOR: https://drive.google.com/open?id=1mJSA7QCDksdU5_HYZ68KFqn82p5hvGYG

RUNTIME: https://drive.google.com/open?id=18qY700spWvCYkcQlYgYhx5qSAxw09IPZ

Thank you :)

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JPhilipp · Feb 15, 2020 at 02:24 PM 0
Share

In what direction is the ground moving? And what components does it have attached?

avatar image DigitalCyclone JPhilipp · Feb 15, 2020 at 02:38 PM 0
Share

there isn't any component besides anything you'd get from a cube. just a box collider, mesh filter, and renderer.

as for which direction, from the picture it's definitely moving to the right, but it's also moving up (hence why the character is floating)

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by DigitalCyclone · Feb 15, 2020 at 03:08 PM

FOUND THE ISSUE!

Apparently it was actually my fault. The teleportation scripts (which teleport the player out of the tunnel if they walk in) apparently worked on the terrain aswell....for some reason?

Lesson learned: if you have triggers, be VERY careful of them when they come in contact with the ground or anything you don't want to be affected by them.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

121 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Enable/Disable a Static object 1 Answer

Problem moving static batch root when using StaticBatchingUtility.Combine 1 Answer

can i change a variable from non-static to static at runtime in c#? 1 Answer

Export objects to a .3DS file at runtime 1 Answer

Baking shadow maps for static objects spawned at runtime 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges