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 Ardeni · Aug 08, 2013 at 08:57 PM · physicstimescalerigidbody.velocitytimestep

Can't reproduce some physics sequence

Hello, problem is that, I'm using couple forces to change way of moving my object. After that I need to set position, rotate etc to the same as the begining and start again. After "restart" of moving something weird is happening because my object is moving a little different than 1rst one.

Is hard to explain for me so i decided to create some art in one of topic in community board, here you can find: http://forum.unity3d.com/threads/194158-Physics-and-repeating-some-events-forces?do=editpost&postid=1318259

There's also short movie: http://sdrv.ms/14puLEb

Any idea, what's wrong I'm doing?

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
1

Answer by Jtbentley_v2 · Aug 09, 2013 at 01:39 AM

If you're using the built in physics solution, you're probably doing nothing wrong. PhysX is not physically accurate, it's merely an aproximation. Essentially, that means it's actually got a slight factor of randomisation.

If you reset everything in a fixed update loop, and trigger everything identically, you might have slightly better luck but by it's nature, it isn't designed to be a simulation (a simulation physics solution would produce identical results under identical circumstances).

The way around this is to build your own physics, which for a rocket game like this probably wouldn't be too hard (but still much harder than using the built in solutions)

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 Ardeni · Aug 09, 2013 at 07:49 AM 0
Share

Agree, but how to reset physics time to zero and start count after press start rocket? After Reload the scene every flyes problems are the same. This means 1st is the same always. Second like the second after restart scene etc. It' looks like the rocket is gaining some physics-noise after every flyes.

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

15 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

Related Questions

Slow motion for Physics game 2 Answers

"Fast" fixed timestep 1 Answer

ForceMode.VelocityChange vs. simply adding to .velocity 0 Answers

Clothes goes mad with a near-zero time scale? 0 Answers

Why does rigidbody.velocity.x return crazy float values? 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