Details Transform of Volume

I previously asked about how to get the [rotation of a volume][1]. while the solution that was provided worked it was a bit of a hassle. So i continued to search for a way to get the the Transform options to show up in the Details panel. i figured it out, mostly. At the moment i can either have the Transform options or access to the variables in my class derived from APhysicsVolume. i overrode GetSelectedComponents(TArray& SelectedObjects) in my main class and had it add the volume rootcomponent to the SelectedObjects array and return true. Doing this gives me access to the Transform options but i do not have access to the Physics Volume derived class and its variables. If i have GetSelectedComponents add the derived class instead of the RootComponent it is then like it was before with no Transform options, and if i add both then i get nothing in the details panel.

This is of the volume actor with the RootComponent set in GetSelectedComponents. The name missing on the details panel is how it rendered, i did not blur it out.

This is of the volume actor with itself set in GetSelectedComponents.

And this is when both are added in GetSelectComponents.

So i’m thinking i’m either missing a function i need to overload or a setting some where that i haven’t been able to find. Any help would be greatly appreciated.

– John

You are probably experiencing trouble because volumes do not support showing transforms. The reason for this is that all transform info is built into each vertex. This is largely legacy due to the way you can edit volumes and brushes using geometry mode.

You could make a details panel customization that displays a transform section and then applies that to each vertex but extracting that info back out would be difficult. Ideally the vertices would be local to the component. This is something we plan on addressing at some point but I don’t have an ETA.

Could you give us a 1 -3 line summary of what you are asking in this thread?

Rama

Sorry, was running on 36 hours of no sleep when i posted that. the short version is this.

When i overload the GetSelectedComponents function on a class extended from APhysicsVolume and return the RootComponent i get the Transform options in the detail panel but not access to any variables in the class extended from APhysicsVolume. And if i pass the APhysicsVolume to GetSelectedComponents i don’t get the Transform options. the question is then, am i missing a setting or function override that would allow me to have the transform options in the details page and access to the variables in the main class.

–John

please post your entire related code so we can see what you are doing currently!

:slight_smile:

Rama

the entire of the code is this

bool GetSelectedComponents(TArray& SelectedObjects) OVERRIDE
{
		//SelectedObjects.Add(this); 
		SelectedObjects.Add(RootComponent);
		return true;
}

All you need to do is use the C++ class wizard in the editor and subclass APhysicsVolume and then add this to it.
The line with the RootComponent in it will have the Transform options in the details panel while the one referencing “this” is like a normal volume without the transform options. if you try one make sure the other is commented out because it will then give you nothing in the details panel.

–John

#Unresolved

I think Epic will have to look at this, I dont know the underlying structures involved here

:slight_smile:

Thanks for taking a look