Game Development Community

MountForce implementation

by Matthew · in Torque X 2D · 07/26/2009 (11:50 am) · 0 replies

I have tried on multiple occasions to get MountForce to work when mounting the camera to the player and cannot.

If I simply use:

_camera.Mount(_tracked_object, "", new Vector2(7, -4), 0, false);

or some variant of this line, it works. Once I try to apply MountForce by using:

_camera.UseMountForce = true;
_camera.MountForce = 4.0F;
_camera.TrackMountRotation = false;
_camera.Mount(_tracked_object, "", true);

The camera ceases to mount to the player. Setting the last Mount parameter to false does nothing as well. These are both in the OnRegister method of a CustomCamera component. What am I doing wrong?