Game Development Community

3darrow port to latest T3D

by Donnie Hutson Jr · in Torque 3D Professional · 03/14/2014 (12:23 am) · 10 replies

Has anybody ported the 3darrow resource or can you plz???

www.garagegames.com/community/resource/view/16675/1

About the author

Electrical Engineer by trade, Computer geek by night. Still learning and loving every minute.


#1
03/14/2014 (6:41 am)
That doesn't work? Looks like it should....
#2
03/14/2014 (8:35 am)
hey richard, this is what I need ported over to the latest version;

Engine Changes:
engine/T3D/guiObjectView.cpp , Line 302, just under void GuiObjectView::setOrbitDistance(F32 distance) , add:

// 3D Arrow Resource  
    void GuiObjectView::setRotation(F32 x, F32 y, F32 z)  
    {  
        mCameraRot.x = (x * 1.0f);  
        mCameraRot.y = (y * 1.0f);  
        mCameraRot.z = (z * 1.0f);  
    }  
    // 3D Arrow Resource



engine/T3D/guiObjectView.cpp , at the very bottom of the file, add:

// 3D Arrow Resource  
    ConsoleMethod(GuiObjectView, setRotation, void, 5, 5,  
                  "(float x, float y, float z)\n"  
                  "Sets the rotation for the loaded model..\n\n"  
                  "\param x x rotation value."  
                  "\param y y rotation value."  
                  "\param z z rotation value.")  
    {  
       argc;  
       object->setRotation(dAtof(argv[2]), dAtof(argv[3]), dAtof(argv[4]));  
    }  
    // 3D Arrow Resource End



engine/T3D/guiObjectView.h , Line 70, just under void setOrbitDistance(F32 distance); , add:

// 3D Arrow Resource  
       void GuiObjectView::setRotation(F32 x, F32 y, F32 z);  
       // 3D Arrow Resource End
#3
03/14/2014 (4:02 pm)
But this could probably have been done using the GuiObjectView's cameraRotation field. I'll have to try it out - if it works then there won't be any need to modify the engine.
#4
03/14/2014 (7:49 pm)
ok thanks richard, itll make for a great waypoint indicator.....
#5
03/17/2014 (4:26 pm)
any luck richard??
#6
03/17/2014 (8:51 pm)
I haven't fiddled with it - maybe this weekend.
#7
03/21/2014 (7:14 pm)
got it..... posting to resources!!
#8
03/21/2014 (8:21 pm)
hey Donnie,
am getting a neat idea - would like to try my hands at expanding this.
So am looking forward to that resource :)
and thanks for sharing
#9
03/21/2014 (8:27 pm)
its up now and cant wait to see what you do....
#10
04/22/2014 (10:54 pm)
I make for a great waypoint indicator.

Fully Pc Games
www.fullytoppcgames.net