aiaf Posted November 7, 2017 Share Posted November 7, 2017 Camera can be at any position , facing any direction. Im trying to rotate it back to a given point, for example a model: console->GetCurrentUnit()->GetModel()->GetPosition(true) Tried to use AlignToVector but cant figure out what the vector should be: camera->AlignToVector(console->GetCurrentUnit()->GetModel()->GetPosition(true), 0, 0.01); camera->AlignToVector(console->GetCurrentUnit()->GetModel()->GetPosition(true), 1, 0.01); camera->AlignToVector(console->GetCurrentUnit()->GetModel()->GetPosition(true), 2, 0.01); Any idea how to do this ? Thanks Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
macklebee Posted November 7, 2017 Share Posted November 7, 2017 I am not sure I understand what you are asking, but are you trying to do Entity:Point()? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
aiaf Posted November 8, 2017 Author Share Posted November 8, 2017 Yeah. Thank you camera->Point(console->GetCurrentUnit()->GetModel()->GetPosition(), 2,Leadwerks::Time::GetSpeed()*0.01, 0.0); Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.