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 justinsykes2006 · Mar 14, 2020 at 01:04 PM · console errors

Skipped updating the transform of this rigidbody because its components are infinte, could you have applied infinite forces, acceleration or set huge velocity?

I'm making a simple game and this error keeps showing up and then just stops me from playing my game: Skipped updating the transform of this rigidbody because its components are infinte, could you have applied infinite forces, acceleration or set huge velocity?

please help!

Comment
Add comment · Show 1
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 · Mar 14, 2020 at 01:25 PM 1
Share

@justinsykes2006 Please share the exact code line in which this error occurs, and mark it for us -- and also share some of its surrounding code.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by justinsykes2006 · Mar 14, 2020 at 01:38 PM

@JPhilipp Heres the script and I think its talking about a cylinder object

using UnityEngine;

public class PlayerCollision : MonoBehaviour{

 public PlayerMovement movement;
 public Rigidbody rb;

 void OnCollisionEnter (Collision collisionInfo)
 {
     if (collisionInfo.collider.tag == "Obstacle")
     {
         movement.enabled = false;
         FindObjectOfType<GameManager>().EndGame();

         FindObjectOfType<AudioManager>().Play("PlayerDeath");



     }



 }

}

heres another one this is the GameManager

using UnityEngine; using UnityEngine.SceneManagement;

public class GameManager : MonoBehaviour {

 bool gameHasEnded = false;

 public float restartDelay = 100f;

 public GameObject completeLevelUI;

 public void CompleteLevel ()
 {
     completeLevelUI.SetActive(true);
 }

 public void EndGame ()
 {
     if (gameHasEnded == false)
     {
         gameHasEnded = true;
         Debug.Log("Game Over");
         Invoke("Restart", restartDelay);
         // Restart Game 

     }



 }


 void Restart ()
 {
     SceneManager.LoadScene(SceneManager.GetActiveScene().name);
 }


}

And there was another problem, in the error list at the script it says : The type or Namespace name 'sound' could not be found (are you missing a using directive or an assembly reference?)

using UnityEngine.Audio; using System; using UnityEngine;

public class AudioManager : MonoBehaviour { public Sound[] sounds;

 public static AudioManager instance;

 // Use this for initialization
 void Awake () {

     if (instance == null)
         instance = this;
     else
     {
         Destroy(gameObject);
         return;
     }

     DontDestroyOnLoad(gameObject);

     foreach (Sound s in sounds)
     {
         s.source = gameObject.AddComponent<AudioSource>();
         s.source.clip = s.clip;

         s.source.volume = s.volume;
         s.source.pitch = s.pitch;
         s.source.loop = s.loop;
     }
     
 }

 public void Play (string name)
 {
     Sound s = Array.Find(sounds, sound => sound.name == name);
     if (s == null)
     {
         Debug.LogWarning("Sound: " + name + " not found!");
         return;
     }
     s.source.Play();


 }
 void Start ()
 {
     Play("Song");
 }

}

Comment
Add comment · Show 2 · 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
avatar image justinsykes2006 · Mar 14, 2020 at 01:53 PM 0
Share

I think I solved the problem! no need to reply!

avatar image MUG806 justinsykes2006 · Feb 18, 2021 at 08:34 PM 0
Share

Can you post your solution to help others =(

avatar image
0

Answer by okan92topal · May 05, 2021 at 10:24 PM

Check your collider's radius. You may have changed in update method ? You probably changed your collider's radius and it's going to infinite. This can lead to collide everything at the same time in your scene. That's why you got that error.

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

125 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 avatar image avatar image avatar image avatar image

Related Questions

Horrible Console Spam... no ideas!! PLEASE HELP! 1 Answer

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details. HELP! 0 Answers

4 time stamps console error 0 Answers

Uma Power Tools/Recipe Tools compile errors 1 Answer

Console game isn't working. 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