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 hans_vesthardt98 · Dec 13, 2013 at 08:04 AM · animationcollisioncharacterlooping

I just made my animation loop, but now my character walks through all colliders?

Alright, so i just looped my animation, and now the collider doesn't work. My character passes right through my "cubes" that you have to avoid, anyone who might know whats going on? And i HAVE double-checked, i still have my Mesh Collider on my character and my cubes all have a Box Collider that is a tricker. In my controller for my character i did also write a script like this: //When player collides void OnTriggerEnter ( Collider other ) { shouldWalkForward = false; isDead = true; gameObject.renderer.enabled = false;

Help please? Thanks in advance.

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 GameVortex · Dec 13, 2013 at 08:08 AM 0
Share

Are you saying that collision works if you don't loop your animation? How are you moving your character? Are you using the CharacterController supplied by unity?

For future reference, please provide more details in your questions.

avatar image hans_vesthardt98 · Dec 13, 2013 at 11:05 AM 0
Share

No, it worked before i put on the animation, but dosen't work with or without the animation now. What i did was to import a new character ( the old one was just a cube) and then set everything to the same as the old one, including scripts and options. And i made my own controller.

2 Replies

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

Answer by hans_vesthardt98 · Dec 16, 2013 at 11:34 AM

Alright, so i got some help from a friend, and it works now. For future reference, what i did was to attack a Rigid Body, but then my character was running around the place when he collided, so i just ticked the Freeze position boxes in the Rigid Body. If you have the same problem, i can give a more in depth explanation, just comment this :)

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

Answer by fafase · Dec 13, 2013 at 08:06 AM

If a collider is set to be trigger then you will go through. IsTrigger means detecting collision but no resolution.

Unset IsTrigger and you won't get through.

Also, do you really a mesh collider for the player? Do you really need all the details? Often a character controller is enough or if you need more accuracy, boxes around the main part of the body.

Comment
Add comment · Show 1 · 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 hans_vesthardt98 · Dec 13, 2013 at 08:09 AM 0
Share

I just unset isTrigger on my cubes. Though, i STILL go through my objects. Any idea of what is going on? It has always been working, just not after i added the animation

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

17 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

Related Questions

How to stop first person player from walking through animated door 1 Answer

Facing problem with my character 1 Answer

Simple AI and Animation 2 Answers

How To Play A Different Animation When Bullet Contacts With A Certain Limb? 0 Answers

Animate character sitting in a chair 1 Answer


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