Jump to content
Barba-negra

setVectorDirAndUp with movement speed

Recommended Posts

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

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

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
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

I understand , and setVelocityTransformation Could it work to set turning speed?

Share this post


Link to post
Share on other sites
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

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

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

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

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

Did you try setting interval to 0.5?

Share this post


Link to post
Share on other sites

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

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

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

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

{_x setVectorDirAndUp [[0,0.66,-0.33],[0,0.33,0.66]]} forEach [objeto1,objeto2] ;

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×