Barba-negra 117 Posted September 8, 2018 Good morning friends, I hope you are very well, guys how do I do this so that the movement of an object's turn is not fast, if not change direction to the desired speed? I am using this command but it is direct without speed: object setVectorDirAndUp [[0,0.66,-0.33],[0,0.33,0.66]]; maybe setVelocityTransformation serve me? How could I do it? Thanks in advance Share this post Link to post Share on other sites
HazJ 1289 Posted September 8, 2018 Not understanding you so just gonna guess lol. https://community.bistudio.com/wiki/setVelocityModelSpace Share this post Link to post Share on other sites
Barba-negra 117 Posted September 8, 2018 thanks friend, what I try to say, is that with setVectorDirAndUp, I can change the direction of an object, but when I do it, it does it instantaneously, and I would like it to be slow Share this post Link to post Share on other sites
HazJ 1289 Posted September 8, 2018 The command is instant. You can set base values for each elements and adjust (increment) every X seconds or whatever. Share this post Link to post Share on other sites
Barba-negra 117 Posted September 8, 2018 if you understand me ? Share this post Link to post Share on other sites
HazJ 1289 Posted September 8, 2018 1 minute ago, HazJ said: The command is instant. You can set base values for each elements and adjust (increment) every X seconds or whatever. If you understand me ? Share this post Link to post Share on other sites
Barba-negra 117 Posted September 8, 2018 I understand , and setVelocityTransformation Could it work to set turning speed? Share this post Link to post Share on other sites
HazJ 1289 Posted September 8, 2018 42 minutes ago, HazJ said: The command is instant. You can set base values for each elements and adjust (increment) every X seconds or whatever. Disregard. https://community.bistudio.com/wiki/setVelocityTransformation The command you even mentioned yourself does exactly that. What is your issue? Arguments and info on the Wiki. Along with multiple examples. Share this post Link to post Share on other sites
Barba-negra 117 Posted September 8, 2018 is that I need to be slow, or with the speed that I can adapt when I make the turn Share this post Link to post Share on other sites
HazJ 1289 Posted September 9, 2018 Read the Wiki. https://community.bistudio.com/wiki/setVelocityTransformation Quote interval: Number - Relative position between the two reference objects where the manipulated object will be placed at. (Range 0..1) Look at the examples as well. lol @ "Bob on imaginary stairway to heaven" 1 Share this post Link to post Share on other sites
Barba-negra 117 Posted September 9, 2018 ok friend I'm going to take a good look at that if I can do it, thanks bro Share this post Link to post Share on other sites
HazJ 1289 Posted September 9, 2018 If you need further help. Please provide more info. What is your end goal? What are you trying to do exactly? What you have done? What were the results of your tests, etc... Share this post Link to post Share on other sites
Barba-negra 117 Posted September 9, 2018 ok bro I'm trying to make an object that is in an initial position, begin to lean forward 30 degrees, that I can do with setVectorDirAndUp [[0,0.66,-0.33],[0,0.33,0.66]];, the problem is that he does it instantaneously, and I need to set a speed to him, so that he makes the inclination slower Share this post Link to post Share on other sites
HazJ 1289 Posted September 9, 2018 Did you try setting interval to 0.5? Share this post Link to post Share on other sites
Barba-negra 117 Posted September 9, 2018 I have not tried, but where would I put it? because if I put a sleep, the delay time will be only before doing the action of inclination, and once you finish the sleep make the turn sharply Share this post Link to post Share on other sites
Barba-negra 117 Posted September 9, 2018 this would serve ? waitUntil { // Wait 5 minutes _until = diag_tickTime + 5 * 60; waitUntil {sleep 1; diag_tickTime > _until;}; if(_condition) then { object setVectorDirAndUp [[0,0.66,-0.33],[0,0.33,0.66]];, }; false; // Loop waitUntil forever }; Share this post Link to post Share on other sites
Barba-negra 117 Posted September 9, 2018 well I think that I'm wrong does not work, must have some error, I'll take advantage of asking something else, is there the possibility that with the parameter setCamShakeParams, I can make the player's camera only move to one direction? that is to say that vertCoef only moves one time up and that it takes more time to down? Share this post Link to post Share on other sites
Barba-negra 117 Posted September 11, 2018 Is it possible that I can call 2 objects to the same function? that is to say: objeto1 and objeto2 setVectorDirAndUp [[0,0.66,-0.33],[0,0.33,0.66]]; ? is giving me error but how could I do it? Share this post Link to post Share on other sites
pierremgi 4833 Posted September 11, 2018 {_x setVectorDirAndUp [[0,0.66,-0.33],[0,0.33,0.66]]} forEach [objeto1,objeto2] ; 1 Share this post Link to post Share on other sites
Barba-negra 117 Posted September 11, 2018 thanks @pierremgi : D Share this post Link to post Share on other sites