Search Unity

sphere falling through platform

Discussion in 'Editor & General Support' started by weefz, Jul 23, 2005.

  1. weefz

    weefz

    Joined:
    Jul 21, 2005
    Posts:
    7
    Me balls keep falling through the platform I made. I assigned the mesh colliders to the platform. rigidbody etc with a sphere collider on the ball. Frustrating but it is amusing to watch repeatedly. =D
     
  2. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Does the mesh collider have a mesh selected in it? Try clicking on the popup menu in it and Reset it.

    -Jon
     
  3. DaveyJJ

    DaveyJJ

    Joined:
    Mar 24, 2005
    Posts:
    1,558
    Is the mesh on the platform dense/tight enough to prevent the ball from sliiping between the vertices?
     
  4. weefz

    weefz

    Joined:
    Jul 21, 2005
    Posts:
    7
    Somehow I fixed it. But now I'm spinning upside down in circles. lol
     
  5. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Can you attach a screenshot of the scene view of your setup?
    That would probably give us a hint in what is going wrong.
     
  6. weefz

    weefz

    Joined:
    Jul 21, 2005
    Posts:
    7
    Hi there! I posted some screens here:

    http://www.yeepx.com/unity1.jpg
    http://www.yeepx.com/unity2.jpg
    http://www.yeepx.com/unity3.jpg

    I finally stopped spinning but I'm not quite getting the results I'm looking for.
    The desired effect is to have this golf ball be manipulated through the course with fpswalker and mouselook. What actually happens is really far out but unintended.

    Even when things are going wrong (and I'm positive it's me making things wrong), Unity is still a lot of fun. =D

    Thanks in advance.
     
  7. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    If you want to you can upload the project somewhere and i'll take a look at it to see whats going wrong.

    Make sure you not only upload the assets folder but the entire project folder. (If you upload only the assets folder, you lose all the meta data on the way)
     
  8. weefz

    weefz

    Joined:
    Jul 21, 2005
    Posts:
    7
    Hi-

    Joachim, thanks for offering to look at my file. Here it is (40mb)

    http://www.yeepx.com/weefz_thing.zip

    The WIP file is "newer gonzo". I used C4D 9 to export an FBX file. Everything was triangulated and I removed redundant Boole parents which caused some other problems. The sphere was created in Unity.

    DaveyJJ: I think the mesh is ok but I haven't been able to steer the ball throughout the course in order to be 100% sure it is dense enough.

    aarku: I think this had helped but obviously led me to other problems. =D

    Thanks!
     
  9. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    1) Cleanup your sphere setup. The sphere should have no transform parents.
    Attach a rigid body to it and a sphere collider. Use Reset on the sphere on make it fit the spheres mesh.

    2) I wrote a small script which does the marble rolling.
    Attach it to the sphere.


    3) Make sure the camera is not a child of a rigidbody.
    For now just make a static camera. You can improve on that later.

    You had 2 cameras in your scene. Make sure you have only one.
    Make sure that the camera does not have a parent. Just for cleanlyness.
    Make sure the camera has the main camera tag assigned to it.
    Otherwise the script can't find it. (If you start a new scene, a camera with the main Camera tag is automatically created)
     

    Attached Files:

  10. weefz

    weefz

    Joined:
    Jul 21, 2005
    Posts:
    7
    It works! I can see the ball rolling and it appears I can control the direction with the arrow keys. What would be the best way to have a camera follow the ball?

    Thank you =D