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 james lee · Oct 06, 2010 at 08:17 AM · collisionphysicsbugroll

Bug? ( failed collision from golf simulation )

i have to make golf simulation game but i understand to make physics from Unity3d . i want to that someing below .

  1. adjust my golf simulation physics mathod(fly and roll, physic material) to Unity3d
  2. using unity collision

how can i do? could tell me please. i had to trying.

terrain(plane make to gameObject) meshCollider

Ball(GameObject)

-Transform

ball size : 0.04

-SphearCollider

radius : 0.5000001

-Rigidbody

mass : 0.045

drag : 0.012

angleDrag : 1

gravity = true;

isKinematic = false;

interpolate : no matter the value of

Collision Detection : no matter the value of

test one. rolling

1.before

push => o : ball

=============================== : plane

rigidbody.velocity = new Vector3(0,0,1);

2.after

=============================== : plane

                   o          : ball

what is terrain through?

this is Bug?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by · Oct 06, 2010 at 10:13 AM

I think you're asking why the ball goes through the plane when you set its velocity.

The rigidbody.velocity documentation says that "in most cases you should not modify the velocity directly, as this can result in unrealistic behaviour". You should instead use rigidbody.AddForce.

As for why it's falling through, with a ball that size, it might actually pass through the plane in a single update. I've never used meshcolliders before either, so I'm a bit on the dark there. I would personally recommend testing with a blank cube gameobject to get it working.

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 james lee · Oct 06, 2010 at 11:55 AM 0
Share

i'm sorry

i tried to rigidbody.velocity and rigidbody.addforce but it was impossible

so that increate size of SphearCollider radius : 0.5000001 => radius : 0.6 ummm... collision batter i don't want to this way

it's may be asked whether bug?

avatar image
-2

Answer by bonds · Oct 06, 2010 at 09:28 AM

What?? terrible..

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 · Oct 06, 2010 at 10:08 AM 0
Share

This isn't helpful, or even a real answer.

avatar image
0

Answer by GODLIKE · Oct 06, 2010 at 01:16 PM

He may try to increase the time resolution for physics simulation and that would solve everything... and on a golf game I think that eating more cpu cycles shouldn't impact too much on performance and framerate.

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 james lee · Oct 06, 2010 at 02:00 PM 0
Share

"fixed time of physics" value is 0.001 or 0.0001 this value is same result

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

IgnoreCollision affecting children & unrelated objects when it should'nt ? 0 Answers

physics rolling error( included sample and simple demo) 0 Answers

CapsuleCast colliding improperly 2 Answers

No bounce after rigidbody collision 2 Answers

Enemy bouncing physics 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