Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Zetsaika · May 02, 2011 at 11:53 PM · collisionphysicscharactercontroller

Error on checking collision or code desync?

I was making an 2D character controller based on an object with a rigiddbody and a box collider.

I got everything right and working, except for the collision.

First the code: http://nopaste.info/5758934778.html

The problem:

When the character stand on an edge of a platform and jump, it slips down like the collision that was checked was the left one insteaf of the top one. What i can see is that the collisions work, but whem i jump the code aways get the wrong collision check.

[Edit by Peter G to try to clarify the question]

When the character is standing on top of the platform and jumps/falls off the sides, he slides down the side (when he should be able to stand?). But when he jumps up from the bottom of the platform, he drags on the sides and begins rising up.

[end edit]

Here is an explanation of the pictures.

  1. The character is standing on the left top edge and jump - When the character falls it slips off the edge.
  2. The character is standing on the right top edge and jump - When the character falls it slips off the edge.
  3. The character is standing below the botton left edge and jump - When the character touchs it slip to the left and continue to go up.
  4. The character is standing below the botton right edge and jump - When the character touchs it slip to the right and continue to go up.

An image to explain: alt text

Its been 2 days and i can't figure out what to do it. Thanks in advance.

EDIT : No, i am not using a character controller and yes i have triple checked the code.

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 Zetsaika · May 04, 2011 at 01:00 AM 0
Share

Not a single soul?

0 Replies

· Add your reply
  • Sort: 

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

No one has followed this question yet.

Related Questions

Keeping player stationary and let physics affect... 0 Answers

Concave rotation Collision problem 3 Answers

Voxel engine physics 3rd person character controller 1 Answer

Is there a rigidbody character controller 3rd person that can handel stairs (steps)? 1 Answer

Can't use Rigidbody or Character Controller 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