x


camera zoom

Hello,

when my player enters a collider, the camera has to zoom. And it's zooming in my code, but now it has to do it smoothely over a few seconds. Ans suggest? in javascript please...

function OnCollisionEnter(collision : Collision) {

    var actualFOV = camera.fieldOfView;
    camera.fieldOfView = 60;
}
more ▼

asked Aug 19, 2012 at 02:37 AM

RickTick gravatar image

RickTick
56 61 51 52

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
more ▼

answered Aug 19, 2012 at 02:42 AM

J.D. gravatar image

J.D.
171 1 2

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5839
x4618
x259

asked: Aug 19, 2012 at 02:37 AM

Seen: 809 times

Last Updated: Aug 19, 2012 at 02:43 AM