Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* added hack for broken rotation when object facing 180

  • Loading branch information...
commit 9a06dc08dd9fde0f5c8033ba4dc751cf9bd149c2 1 parent 99b418a
@fiezi authored
View
BIN  Moviesandbox.exe
Binary file not shown
View
12 classes/interpolateNode.cpp
@@ -13,6 +13,7 @@ targetActor=NULL;
moveTime=1.0;
bNeedMover=true;
+bTurnOnFly=false;
listType.push_back("15PickWorldButton");
listName.push_back("moveActor");
@@ -29,6 +30,12 @@ listName.push_back("moveTime");
listProp.push_back("MOVETIME");
listIcon.push_back("icon_flat");
+
+listType.push_back("10BoolButton");
+listName.push_back("turnOnFly");
+listProp.push_back("BTURNONFLY");
+listIcon.push_back("icon_flat");
+
color=Vector4f(0.5,0.5,0.5,1.0);
registerProperties();
}
@@ -41,6 +48,7 @@ Node::registerProperties();
createMemberID("MOVETIME",&moveTime,this);
createMemberID("MOVEACTOR",&moveActor,this);
createMemberID("TARGETACTOR",&targetActor,this);
+createMemberID("BTURNONFLY",&bTurnOnFly,this);
}
void InterpolateNode::start(){
@@ -74,6 +82,10 @@ void InterpolateNode::execute(){
lerp->bLinear=false;
moveActor->movers.push_back(lerp);
bNeedMover=false;
+
+ if (bTurnOnFly)
+ sceneData->controller->myTools[TOOL_NAV]->myBtn->clickedLeft();
+
//}else{
nextNode();
View
2  classes/interpolateNode.h
@@ -13,6 +13,8 @@ class InterpolateNode: public Node{
float moveTime;
bool bNeedMover;
+ //hack for turning differently...
+ bool bTurnOnFly;
InterpolateNode();
~InterpolateNode();
Please sign in to comment.
Something went wrong with that request. Please try again.