x


Slow Time in Area

So, I want to decrease the timescale in a select area designated by the player. Everything else around it will move normally, but inside the circle, I want things to move slowly. Can I alter specific gameobjects' timescales in an area?

I could use Physics.OverlapSphere to get all objects in the area, I just don't know how (if) I can apply a slow to them without giving them all their own individual timescale variables.

more ▼

asked Jan 27, 2012 at 04:05 AM

Wikkit gravatar image

Wikkit
16 3 2 2

You can't change an object's individual timescale. I'm afraid you'll have to write your own time-control engine for this.

Jan 27, 2012 at 04:22 AM syclamoth

You could create a collider box defining your area and with an if statement in all the update functions of all the objects concerned(...)you check if they are in and then apply a division to their movement speed. Make sure you divide also the gravity...so that sounds like a lot of work.

Jan 27, 2012 at 08:15 AM fafase
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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:

x839
x228
x149
x88

asked: Jan 27, 2012 at 04:05 AM

Seen: 1145 times

Last Updated: Jan 27, 2012 at 08:15 AM