Game Development Community

Dynamically changing mount force?

by Matthew Durante · in Torque Game Builder · 11/11/2006 (5:47 pm) · 0 replies

I've searched a bit, but haven't found anything on this.

I'm controlling my camera by mounting it to another object:
> sceneWindow2D.mount(%obj, "0 0", %mount_force, false);
but I need to animate the mount force, and possibly later the mount offset.

Even though there doesn't seem be a way to set this individually, by continually re-executing this function call I get the desired effect. However looking at the code it seems to be going through the whole process of unmounting and remounting to the same object but with a different mount force.

While this is acceptable for now, I'm wondering if there's a more efficient way?

If not it's something I'll think about adding in the future...

Thanks,

- Matthew Durante