I have a ball (rigidbody, can move rotate etc) that I want a simple blob shadow on, so I attached a projector. The problem is, the projector rotates with the ball when it is moving around... Is there a simple way to keep the shadow projector pointed "down" (which is actually at a wall in my game).
Thanks!
Yep, there's a script that was developed specifically for that (speaking of which, I need to implement soon into my game). Oh, the script is written in CS (C sharp format). Just attach this script to the object with the blob shadow.
using UnityEngine;
using System.Collections;
public class BlobShadowController : MonoBehaviour
{
void Update()
{
transform.position = transform.parent.position + Vector3.up * 8.246965f;
transform.rotation = Quaternion.LookRotation(-Vector3.up, transform.parent.forward);
}
}