Add BoxCollider from other object to current object

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Add BoxCollider from other object to current object



If you add a BoxCollider component to an object, it is auto sized to be a bounding box size. Is there a way to generate a BoxCollider component for another object(so it has the bounding box of that object), but then add it to the current, different object? Thanks!





In editor, copy component and paste as new. In runtime,first call AddComponent() ,second set its size to another object size.
– Ron Tang
Aug 5 at 4:22





I dont know how I didnt think of that lol
– Jake Faulkner
Aug 5 at 15:40









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard