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 Caiuse · Jan 13, 2012 at 10:08 PM · unify

Is there a mirror for Unify Community resources?

As many of you might of noticed the Unify Community wiki has gone offline because of a hacker problem. I've been trying to get to some of the resources hosted there... specifically the DontGoThroughThings.js . Does anyone know, or can provide a mirror to such resources so that we can all benefit from the brilliant resources and not all be effected by the hackers.

Cheers - C

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by dannyskim · Jan 13, 2012 at 10:30 PM

Seeing as how this script is publicly available, I will just post it on this thread for you. Of course, no credit for the authoring of this script goes to me, and I can't remember if that information was commented in, I may have removed it.

I'd rather post it here and not put it up for file sharing because of the fact that free file sharing websites typically will take down the link if it doesn't receive enough traffic.

using UnityEngine; using System.Collections;

 public class DontGoThroughThings : MonoBehaviour 
 {
     public LayerMask layerMask; //make sure we aren't in this layer 
     public float skinWidth = 0.1f; //probably doesn't need to be changed 
 
 private float minimumExtent; 
 private float partialExtent; 
 private float sqrMinimumExtent; 
 private Vector3 previousPosition; 
 private Rigidbody myRigidbody; 
 

 //initialize values 
 void Awake() 
 { 
    myRigidbody = rigidbody; 
    previousPosition = myRigidbody.position; 
    minimumExtent = Mathf.Min(Mathf.Min(collider.bounds.extents.x, collider.bounds.extents.y), collider.bounds.extents.z); 
    partialExtent = minimumExtent * (1.0f - skinWidth); 
    sqrMinimumExtent = minimumExtent * minimumExtent;
 } 
 
 void FixedUpdate() 
 { 
    //have we moved more than our minimum extent? 
    Vector3 movementThisStep = myRigidbody.position - previousPosition; 
    float movementSqrMagnitude = movementThisStep.sqrMagnitude;
     
    if (movementSqrMagnitude > sqrMinimumExtent) 
     { 
       float movementMagnitude = Mathf.Sqrt(movementSqrMagnitude);
       RaycastHit hitInfo; 
         
       //check for obstructions we might have missed 
       if (Physics.Raycast(previousPosition, movementThisStep, out hitInfo, movementMagnitude, layerMask.value)) 
          myRigidbody.position = hitInfo.point - (movementThisStep/movementMagnitude)*partialExtent; 
    } 
     
    previousPosition = myRigidbody.position; 
 }

}

Comment
Add comment · 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
0

Answer by dannyskim · Jan 13, 2012 at 10:20 PM

As far as I'm aware, they don't have a separate mirror for the file downloads, it's probably all hosted in a consolidated rack location. That said, they probably turned off all access to their http servers along with access to files. Mirrors are usually only used on websites that are sharing large files, wherein this case, it's just script files that are typically all less than 50kb.

So in short, no, you're out of luck. I have the c# version I think in some folder on my Mac if you want that.

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 Caiuse · Jan 13, 2012 at 10:22 PM 0
Share

Cheers for the information and that would be absolutely brilliant, for the benefit of anyone else after that script any chance you could use a file upload website to share it? Thanks for the reply!

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

help fix expando object .js file error. 0 Answers

I can't go to unify wiki 2 Answers

Can't get Object2Terrain to work 2 Answers

Save and Load from XML U3 Collections Problem 1 Answer

PolyLine Script form Unify Wiki help... 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