Jump to content

[SOLVED] Using Unigine setWorldTransform to set a camera position and rotation


photo

Recommended Posts

Hi there

Still quite new to Unigine, but making some progress in using a c# application to programatically build some worlds.

 

Ive managed to use the PlayerDummy to create some static camera locations, but i cant figure out what the syntax is to set the direction of the camera (i can position it, but it just looks straight down)

 

I am guessing that i need to rotate the matrix passed into the setWorldTransform function, but cant figure it out, ive found some c++ samples but still cant get it figured out.

 

i have this

 

myCam.setWorldTransform(MathLib.translate(new Vec3(dx, dy, dz + dHgt)));

 

To set the location.

 

Anyone help with what is next?

Link to comment
×
×
  • Create New...