Isolate Gismo positioning/orientating and Entity transformation


Could you make me a favor pease? It took me some time to analyze the code beacause i couldn't find the interaction with SceneEntity. It will be better if you include Gismo positioning(1) and SceneEntity transformation(2) in two different methonds. I believe the code will be easier to read and to adapt.
interface ITransformable{

file attachments

Closed Nov 23, 2012 at 12:31 PM by TomLooman
Interface is available in the source (2.0)+ added Geometry.cs class to project - thanks for the code!


vector3D wrote Aug 8, 2012 at 10:49 AM

I rewrote your example to fit my project, and i came up with ITransformable interface, ObjectTransformer class that selects entitys and transforms them using deltaTransform from gizmoObject, that is used just like a ruler.

TomLooman wrote Aug 8, 2012 at 7:11 PM

Thanks for the suggestion. What version of the gizmo are you using (packaged or source tab) the 2.0 has an interface for ITransformable which would allow for such functions.

Whenever I can I will have a look at this to see if the integration can be made easier.

wrote Aug 10, 2012 at 12:53 PM

vector3D wrote Aug 10, 2012 at 12:53 PM

Hey there!
You might be intersted. I created a .cs file where i hardcoded the models(scale,rotate,translate), so i can use gizmo without external content. I attached the file so you can use it.
Only thing you need to change is mesh.draw => GraphicsDevide.DrawUserIndexedPrimitives

TomLooman wrote Aug 11, 2012 at 9:27 AM

Nice, having several .fbx models was something I wasn't satisfied with. I will look into this at a later time and see if I can replace the entire content with your .cs. Thanks for the source.

wrote Nov 23, 2012 at 12:31 PM

wrote Feb 14, 2013 at 1:36 AM

wrote May 16, 2013 at 6:50 AM