Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 aidandalzell833 · Jun 12, 2021 at 10:28 PM · rigidbodybugsclipping

Ah! I’m bouncing and clipping!

Ah, yes, the bugs are back in town! I did not want to post two questions in one day so that’s why I did not ask this yesterday. I have two issues. The first one being my character is clipping through the climb of a hill when I run.

Script:

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class Movement : MonoBehaviour
 {
     public float x, y, z, rotX, rotY;
     public GameObject cam;
     public float sens;
     public float speed = 20;
     public Vector3 deltaMove;
 
 
     void Start()
     {
         Cursor.lockState = CursorLockMode.Locked;
     }
 
     void Update()
     {
         
         
         transform.Rotate(0, rotX * sens, 0);
         cam.transform.Rotate(-rotY * sens, 0, 0);
 
         x = Input.GetAxisRaw("Horizontal");
         z = Input.GetAxisRaw("Vertical");
         rotX = Input.GetAxis("Mouse X");
         rotY = Input.GetAxis("Mouse Y");
         if (Input.GetKeyDown(KeyCode.Space)) y++;
         if (Input.GetKeyUp(KeyCode.Space))
         {
             while (y <= 1)
             {
                 y += 0.1f;
             }
         }
         //if (Input.GetKeyDown(KeyCode.LeftControl)) y--;
         if (Input.GetKeyUp(KeyCode.LeftControl)) y++;
         if (Input.GetKeyDown(KeyCode.LeftShift)) speed = 20;
         if (Input.GetKeyUp(KeyCode.LeftShift)) speed = 10;
         deltaMove = new Vector3(x, y, z) * speed * Time.deltaTime;
         transform.Translate(deltaMove);
 
     }
 }

That is literally the only script I have in the project! (Coming from using core language graphics programming like DX in C++ or Java it is barely anything!) the second thing is my character is bouncing after I jump but I have no physics objects just a Rigidbody! Thanks!

Update: I HAVE FIGURED OUT HOW TO STOP THE BOUNCING BUT STILL NOT THE CLIPPING. I ALSO NEED TO KNOW HOW TO KEEP GOING UP UNTIL I SAY TO FALL AGAIN.

Comment
Add comment
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

1 Reply

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

Answer by aidandalzell833 · Jun 15, 2021 at 11:58 PM

I just followed https://youtu.be/nfX8cnRxrHg and I figured all of it out!

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

168 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 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

Character is not Colliding despite having a Box Collider and Rigidbody 0 Answers

Camera Clips though Walls 1 Answer

How can I change my movement scripts so it moves by rigidbodies movement so it doesn't clip 1 Answer

Rigidbody character clips through or jitters on corners. 1 Answer

Character Clipping through Enclosed Mesh 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