using UnityEngine;using System.Collections;
public class ConveyorBelt : MonoBehaviour
{
public float scrollSpeed = 0.1f;
public Material mat;
void Update()
{
float offset = (Time.time * scrollSpeed) % 1.0f;
mat.SetTextureOffset ("_MainTex", new Vector2(0, -offset));
mat.SetTextureOffset ("_BumpMap", new Vector2(0, -offset));
}
}
Is there a way to make a rigidbody move along with a conveyor belt when standing on it? All I got is this animated texture just now… Is it possible to make a rigidbody move along with the conveyor belt?