Scaling / reshaping an entity
Posted: Tue May 26, 2015 6:52 am
Is there any way to reshape an entity without entirely reforming it?
Three cases of this:
Changing the scale : it'd ideally be possible to make an object bigger or smaller on the fly (in particular a MobileMesh)
Changing the bounds of an AABB : I'd like my AABB objects to be able to shrink and grow quickly
Changing the vertices in a mesh (uncommon) : a mesh might animate or something, and it needs to be able to update its shape in the faster manner possible. (Ideally an animated object would instead be built from AABB's jointed together instead of from raw vertex-based meshes - eck!)
... while I'm here, what's the proper way to make an AABB without using the soon-to-be-removed prefabs? What are the advantages of that method?
From my searches while trying to answer this, I encountered that doing the above might actually help the scaling issues, by using a TransformableShape.
As always, thanks for the amazing quality support on all my questions!
Three cases of this:
Changing the scale : it'd ideally be possible to make an object bigger or smaller on the fly (in particular a MobileMesh)
Changing the bounds of an AABB : I'd like my AABB objects to be able to shrink and grow quickly
Changing the vertices in a mesh (uncommon) : a mesh might animate or something, and it needs to be able to update its shape in the faster manner possible. (Ideally an animated object would instead be built from AABB's jointed together instead of from raw vertex-based meshes - eck!)
... while I'm here, what's the proper way to make an AABB without using the soon-to-be-removed prefabs? What are the advantages of that method?
From my searches while trying to answer this, I encountered that doing the above might actually help the scaling issues, by using a TransformableShape.
As always, thanks for the amazing quality support on all my questions!