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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by juliancruz87 · Feb 03, 2011 at 11:11 PM · cameracollisionsimplephysicmaterial

Why my collision - PhysicMaterial - Camera doesn't work ?

I created the building, later on, I did put this in the scene, and I did import the Physic Material Packages from Unity Standard Assets, then, I put the "Box Collider" in every part of my building, and every box collider I attach the Physic Material "Bouncy" in the material property, it did work it, but in a new model, doesn't work this method, someone knows what happened, please help me, I just need move my camera and that my camera will collisions with my building, please what can I do?, before I didn't need the scripts, what can I do?

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 Wiki

Answer by Bunny83 · Feb 04, 2011 at 12:11 AM

I guess your "building" is imported via FBXImporter? from 3ds max/maya/blender/...? Then you should turn you complete building into a new prefab. To create a prefab rightclick into your project view and select Create-->Prefab. Rename it (to find it later on) and drag and drop your building (with all colliders as child objects) from the scene view onto the prefab. That will turn your building in the scene into a prefab-instance. Now when you drag drop your prefab again into the scene it will look like the first one.

For imported models we use a special hierarchy inside the prefab. Because if you plan to edit your model very often and you're going to reimport it very often, it's better to put the actual model gameobject as a child of the prefab. That way you can replace the model without destroying anything that have been added as child objects.

In the scene view we always create an empty GameObject and add the model as child to it. All other stuff like boxcolliders ... are also added to this "root" gameobject. But it depends also on what you need more: flexibility or maybe performance. Very deep hierarchies drops the performance but as long as you keep the scale of the GO-tree by 1.0 it shouldn't be that much.

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 juliancruz87 · Feb 04, 2011 at 01:53 PM 0
Share

Doesn't work please help me, look it this is the first model that I do http://www.virtualworkcorporation.com/newtech/vesubioV2/

and this is the second http://www.virtualworkcorporation.com/newtech/demo/

the first collision right but the second doesn't collision whyyy ? :(

avatar image Bunny83 · Feb 07, 2011 at 02:25 PM 0
Share

Your two samples are completely different (not the models). In your first like you used some kind of a FPS controller (i guess with a charactercontroller). The second link have some kind of free look movement. Are you sure your camera have some kind of a collider attached? And you could add the movement script to your question, maybe there's something wrong.

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

Jittery Collision Detection 0 Answers

Detect bounce amount 1 Answer

Keeping Rigidbody on Moving Platform? 1 Answer

How can I change camera when colliding with "X" object? 1 Answer

How to keep player in screen? 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