Skip to content
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

Editor feature: Object placement on colliders #2561

Open
BlackCurtainStudio opened this issue Dec 15, 2024 · 2 comments
Open

Editor feature: Object placement on colliders #2561

BlackCurtainStudio opened this issue Dec 15, 2024 · 2 comments
Labels
area-GameStudio enhancement New feature or request

Comments

@BlackCurtainStudio
Copy link

Is your feature request related to a problem? Please describe.
When placing objects in a scene (dragging an asset into the scene view), it is natural that one would like to place an object, for example, on top of a table that has a collider. Currently, the Y position of the placed object seems to default to zero regardless.

Describe the solution you'd like
Object placement in the editor scene view should react to colliders. This means that when I place a model (drag into the scene view) on top of another model in the scene view that has a collider, it should land on top of that collider and not default to Y position zero.

@BlackCurtainStudio BlackCurtainStudio added the enhancement New feature or request label Dec 15, 2024
@johang88
Copy link
Contributor

We could probably use the picking buffer to resolve world position under the mouse cursor. This would allow it to work even if there is not collider on the entity.

@BlackCurtainStudio
Copy link
Author

We could probably use the picking buffer to resolve world position under the mouse cursor. This would allow it to work even if there is not collider on the entity.

Yes, this could probably work as well. I realized later that my original feature description would likely only work for Prefab assets that has colliders attached to them as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-GameStudio enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants