I have been trying to make my camera rotate 360 degree around a target point... And it only partly works.
It does rotate, it does rotate around a point, but I can't set it to rotate 360, only 180... What happen is that I have to choose the angle
I wish the camera to finish is rotation, but I can't choose the side of the rotation. So, the maximum I can do is 180 without choosing
the rotation side.
Also, I would like to make it loop each 15 sec indefinitely, and I don't know how to solve that problem due to the first one.
Here is the probleme... I have no HOLY idea what is the number in the camera rotation trigger, they don't give any kind of clues and I tried
tons of value without having anything coherent...
Here is the trigger :
Camera - Apply camera object Rotation 0.5 for player 1 over 2.0 seconds with Existing Velocity% initial velocity and 0% deceleration
If you decide to go with polar offset, use Sin/Cos for calculating the points (x,y) the camera will face. If the camera doesn't move throughout the game you can calculate these points at the beginning and merely load the angle from an array, instead of performing calculations continuously.
its very simple.
Side picking - the camera will rotate to that side, from wich the needed rotation is smaller.
Camera - Apply camera object Rotation 0.5 for player 1 over 2.0 seconds with Existing Velocity% initial velocity and 0% deceleration
This your trigger will rotate the camera to 0.5 Degrees (relative to the XY axis). If I remember correctly, 0 is looking allongside with the X axis, altough, if you check the camera angle in the editor, it will probably show you -90 degrees or 270. Its bugged in the editor I think.(but im not sure now)
Existing Velocity% - leave that the way it is. Its how smoot the camera should transition between positions.
Decleration - dont remember, but unless you want a really tight camera, you dont need to adjust that.
You probably need a loop, that will turn the camera only by 90 degrees, to make sure it rotates the way you want it.
Example :
Repeating loop
Camera - Apply camera object Rotation (Arithmetic(Current camera yaw of player 1 + 90)) for player 1 over 2.0 seconds with Existing Velocity% initial velocity and 0% deceleration
Wait 2 seconds.
Dont copy the arithmetic part exactley, I just wrote that on top of my head, so you have an easy time finding the correct functions.
If you want the opposite rotation, simply change +90 to -90
General - While (Conditions) are true, do (Actions)
Conditions
((Current trigger) is on) == true
Actions
Camera - Apply camera object Rotation ((Current camera yaw of player 1) + -90.0) for player 1 over 7.5 seconds with Existing Velocity% initial velocity and 0% deceleration
General - Wait 7.0 Game Time seconds
Hello guys,
I have been trying to make my camera rotate 360 degree around a target point... And it only partly works.
It does rotate, it does rotate around a point, but I can't set it to rotate 360, only 180... What happen is that I have to choose the angle I wish the camera to finish is rotation, but I can't choose the side of the rotation. So, the maximum I can do is 180 without choosing the rotation side.
Also, I would like to make it loop each 15 sec indefinitely, and I don't know how to solve that problem due to the first one.
@Claymuffin: Go
Here is the probleme... I have no HOLY idea what is the number in the camera rotation trigger, they don't give any kind of clues and I tried tons of value without having anything coherent...
Here is the trigger :
Camera - Apply camera object Rotation 0.5 for player 1 over 2.0 seconds with Existing Velocity% initial velocity and 0% deceleration
@Claymuffin: Go
Use polar offset or another offset type.
If you decide to go with polar offset, use Sin/Cos for calculating the points (x,y) the camera will face. If the camera doesn't move throughout the game you can calculate these points at the beginning and merely load the angle from an array, instead of performing calculations continuously.
@Claymuffin: Go
its very simple. Side picking - the camera will rotate to that side, from wich the needed rotation is smaller.
Camera - Apply camera object Rotation 0.5 for player 1 over 2.0 seconds with Existing Velocity% initial velocity and 0% deceleration
This your trigger will rotate the camera to 0.5 Degrees (relative to the XY axis). If I remember correctly, 0 is looking allongside with the X axis, altough, if you check the camera angle in the editor, it will probably show you -90 degrees or 270. Its bugged in the editor I think.(but im not sure now)
Existing Velocity% - leave that the way it is. Its how smoot the camera should transition between positions. Decleration - dont remember, but unless you want a really tight camera, you dont need to adjust that.
You probably need a loop, that will turn the camera only by 90 degrees, to make sure it rotates the way you want it.
Example :
Dont copy the arithmetic part exactley, I just wrote that on top of my head, so you have an easy time finding the correct functions. If you want the opposite rotation, simply change +90 to -90
Hope this helps
DONE!!!
General - While (Conditions) are true, do (Actions)
Conditions
((Current trigger) is on) == true
Actions
Camera - Apply camera object Rotation ((Current camera yaw of player 1) + -90.0) for player 1 over 7.5 seconds with Existing Velocity% initial velocity and 0% deceleration
General - Wait 7.0 Game Time seconds