#Question about .GLTF sub-assets and their Transform components

3 messages · Page 1 of 1 (latest)

livid whale
#

Hey, I'm new to Bevy, and I'm a bit confused by .gltf/.glb files. I have a file that contains a few objects. I want to move one object with a certain component towards another over time (Components are added through a function that looks at the "extras" on each model, and adds a component as needed). The problem is when I print out the position (Transform.translate) of the sub-asset object, it says it's located at 0,0,0 I have components on each of these objects that spin them, and they spin from their center. If they have a center, so transforms aren't quite 0,0,0 in reality, right? Is there a way to get the real location of these objects?

thin sky
#

Transform propagates through the hierarchy, so one of the parents of that entity has the proper position

livid whale