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
1
Question by 3dDude · Jul 14, 2010 at 03:15 PM · objectframecollide

colliding fast moving objects? position in last frame

hi i read someplace on this website that it help to collide fast moving objects if you cast a ray from the position of the object this frame and the last frame. and if the ray hits something then move the object back to the position on the last frame. so i was wondering how to get the position of a object in the last frame.

thanks.

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
2
Best Answer

Answer by Mike 3 · Jul 14, 2010 at 03:16 PM

You can't - what you need to do is store the position yourself each frame

Check out the DontGoThroughThings script on the wiki, it does exactly what you want:

http://www.unifycommunity.com/wiki/index.php?title=DontGoThroughThings

Comment
Add comment · Show 5 · 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 3dDude · Jul 14, 2010 at 03:24 PM 0
Share

Ok trying now :)

avatar image Peter G · Jul 14, 2010 at 05:50 PM 0
Share

Or, if that doesn't work, you can wait until Unity 3 comes out which has support for continuous collision detection for fast moving objects.

avatar image 3dDude · Jul 14, 2010 at 07:07 PM 0
Share

thanks! Unity 3 sounds awesome:)

avatar image cregox · Mar 29, 2011 at 08:18 PM 0
Share

@Peter, this is from "the future"... I couldn't find such support on Unity 3. Could you point me to more info on this?

avatar image Mike 3 · Mar 29, 2011 at 08:46 PM 0
Share

http://unity3d.com/support/documentation/Components/class-Rigidbody.html Continuous Collision Detection section

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

Collision with same gameobject only once 2 Answers

how to make a script when u collide with an object it disappears 3 Answers

How can I make a sound deploy after colliding with a certain object (or terrain)? 1 Answer

Object falling through terrain with script 2 Answers

C#: Changing current position of an object in y. 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