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

[Unity-plugin] Context menu for creating Unity terrain components #1504

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Balint-H
Copy link
Collaborator

A QoL addition to create and align Unity terrain with hfield geoms. Also includes tweaks to the way the MJCF is constructed (previously the local Y position of the terrain was used as the basehieght, now it can be separately defined in the HField property of the geom).

@@ -75,17 +80,17 @@ public class MjHeightFieldShape : IMjShape {
var assetName = scene.GenerationContext.AddHeightFieldAsset(this);

if (Application.isPlaying) {
scene.postInitEvent += (unused_first, unused_second) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add these names for our internal tools, please leave them as is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I thought it was my editor applying style, I'll swap it back.

@Balint-H
Copy link
Collaborator Author

Balint-H commented Aug 29, 2024

@erez-tom Once you are available again could you please merge this in? Would fix #1930.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants