hi friends .im using platform mover in my game .my problem is the object not moving along with the mover .why?
NOTE:
th platform move has :
script is:
var targetA : GameObject;
var targetB : GameObject;
var speed : float = 0.1;
function FixedUpdate ()
{
var weight = Mathf.Cos(Time.time * speed * 2 * Mathf.PI) * 0.5 + 0.5; transform.position = targetA.transform.position * weight + targetB.transform.position * (1-weight);
}
AND MY object has
attached rigid body
.so i need to move my object alog with mover pls help me regarding this type.
thanks in advance
i have attached inage for reference