-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add offset property to BoxCollider and SphereCollider components #74
base: main
Are you sure you want to change the base?
Conversation
The GameObject's transform is the offset |
I didn't understand what you mean Without this PR, the only way to set the collider position is to create a child object at the root and add the Collider Box component on it, then set the position of this child object to place the collider correctly. I dont know any another way to do this without an Offset property 2023-11-19.15-48-09.mp4 |
Add the collider as a child GameObject and move the GameObject |
The current way looks a bit like a workaround It might be better to directly add the Offset property to the Collider to move the position of the box instead of creating a child GameObject and adding a Collider to it. It's more understandable for beginners |
What if you want to rotate it too? Should we also have a rotation offset? |
This is a suggestion, if you dont want merge this PR, dont do this But yeah, add a rotation offset property |
What if you want each collider to have its own tags, shall we add a tag property too? |
So, maybe create a default component inside of the hierarchy context menu to create a collider directly ? |
No description provided.