• 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 Scribs · Apr 25, 2013 at 08:09 PM · fpsbeginnercollisions

First person weapon colliding with player graphics?

I'm making a first person melee based game, so I have a sword attached to my camera. I'm using the standard asset first person controller. If i try moving with the camera at a certain angle my movement is slowed and it seems to be cause buy a collision between the $$anonymous$$lt of the sword and the grap$$anonymous$$cs capsule but the capsule doesn't have a collider. so why is there any interacting between the 2 when they touch?

Comment
Add comment · Show 3
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 PimBARF · Apr 25, 2013 at 09:24 PM 0
Share

I also had this problem before, but i fixed it. Does your sword have a collider? Because try removing that and see if it works or not.

avatar image Scribs · Apr 26, 2013 at 12:21 AM 0
Share

I need to keep the collider on the sword so i know when it hits something. great idea with the layers but for some reason it still happens. the only way i got it to stop was disabling collisions between the sword,player and sword and default. it still happen when i made it so the sword wouldn't collide with the player,the camera, or the floor and its a pretty simple sceen so i just can't figure out what its colliding with....

avatar image Scribs · Apr 26, 2013 at 12:37 AM 0
Share

I even put a script on the sword that tells me when it collides with some thing and it reports no collisions but movement is still slowed. i have no idea what the problem is

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by kru · Apr 25, 2013 at 09:36 PM

Create 3 layers: Player, Weapon, Everyt$$anonymous$$ngElse. Put your player capsule on the player layer, your weapon on the weapon layer, and everyt$$anonymous$$ng else that will utilize unity's physics on the everyt$$anonymous$$ngelse layer. Then you can use Edit->Project Settings->Physics to disable collisions between the weapon and player.

Comment
Add comment · Show 3 · 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 Scribs · Apr 26, 2013 at 12:37 AM 0
Share

I need to keep the collider on the sword so i know when it hits something. great idea with the layers but for some reason it still happens. the only way i got it to stop was disabling collisions between the sword,player and sword and default. it still happen when i made it so the sword wouldn't collide with the player,the camera, or the floor and its a pretty simple sceen so i just can't figure out what its colliding with....

avatar image Scribs · Apr 26, 2013 at 12:37 AM 0
Share

I even put a script on the sword that tells me when it collides with some thing and it reports no collisions but movement is still slowed. i have no idea what the problem is.

avatar image Scribs · Apr 26, 2013 at 12:56 AM 0
Share

yep even if remover everything from the default layer it still happens i guess the default layer is just bad thx for the help

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

13 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

Related Questions

Plane/Cube Collisions and manual movement 1 Answer

Having trouble with collisions with a blender-made object. 2 Answers

Frame and Input lag in simple enviorment?[Fixed] 2 Answers

Physics optimization 3 Answers

FPS Tutorial Help 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