Yeah, each leaf is actually an RwFrame connected to the hierarchy (rooted at the scene root or sector root). A branch creates a new subtree- every leaf under it is subject to the branch space. For instance, a flying enemy with particles behind him could be a branch (enemy) and having the leaf (particles) under it. This would snap the particle position to the enemy. If you were to change the particle's frame, It would be local wrt to the enemy. Hope that makes sense.
pegperegogaucho
So crates are beacons and they can have values which encode multiple properties, like upper 3 bits = amount of crates etc.
pegperegogaucho
Afaik, the crate rotation is not encoded in those values (at least in XXL1) so it is determined by something out of our control!
deathhound246
for now*
i'm sure there is some way to modify it, we just need to figure out how
hesopesomeso
I know all of that, including where the orientation for them is, just asking if it is in the editor (too lazy to make in mine)... was going to test something tardis wise...
pegperegogaucho
It is encoded in the value as well?
hesopesomeso
Nope, there's an allocation elsewhere just for orientation.
hesopesomeso
Can't recall which class exactly (I think group?), but can tell you once I touch my decompiler.
adrientd
I know that in the CKCrateCpnt class, there is a big array of values, could it be related to the crate orientations? Or maybe some RNG?
hesopesomeso
Ah yes it's actually the component
pegperegogaucho
Yup that makes sense
pegperegogaucho
Now it is required to find out what rotation is chosen for which crate
adrientd
The values are only between 0 and 1 though, so not entirely sure, as I would expect orientations to be in radians?
But maybe the devs decided to only apply small rotations to the crates which does make sense.
pegperegogaucho
I mean the crate is symmetrical
pegperegogaucho
pegperegogaucho
Or actually no
adrientd
Yes so rotations would only go up to pi/2 I guess
pegperegogaucho
pegperegogaucho
I guess to be sure we could set all values to 1 and see what happens
pegperegogaucho
if nothing happens to the crates, then it is something different :)