Jump to content
Sign in to follow this  
mindstorm

vectordir

Recommended Posts

So i'm trying to get my spectator cam to face downwards so you get a top-down view.

SPECTATOR_CAM setVectorDir [0, 0, -0.99];

That however is not working. However I've been diag_loggin vector dir and it should be the right angle?

Can anyone help me with this?

Share this post


Link to post
Share on other sites

So I sorta got it now:

setVectorDirAndUp [[0,0,-1],[0,1,0]];

This sort of does what I want. However once I use that and then use the mouse it tilts back to the original form and then my view is locked.

Share this post


Link to post
Share on other sites

You might be able to try something like:

while {true} do {
   SPECTATOR_CAM setVectorUp [0,0,-1];
   sleep 0.01;
};

This may be somewhat effective, but I don't really have time to test nor have I really implemented anything like this on a tight loop so I'm not sure how smooth it will be.

Share this post


Link to post
Share on other sites

Try turning manual off, eg.

SPECTATOR_CAM camCommand "MANUAL OFF";

Note that this also means you need to implement your own camera movement.

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
Sign in to follow this  

×