- Home /
Question by
Metalbreath · Sep 12, 2012 at 09:52 PM ·
raycastparticleson
Raycast on Particle - Transform
Hello everyone, i ve got this Raycast Script on a particle
var distance : float = 50;
function Update(){
var dir = transform.TransformDirection(Vector3.forward);
var hit : RaycastHit;
if (Physics.Raycast(transform.position, dir, hit, distance)){
if (hit.collider.gameObject.tag == "Object")
{
?????????; } }
}
How could i make the particle shrink and grow accordingly on how close to the gameObject is? Could someone give me hand with this?
Thanks in advance and for your time!
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How to Stop Enemy "Shooting Through A Wall" 1 Answer
Why this script is not working? 1 Answer
Raycast Destroys player. 1 Answer
RayCast Shooting not working 0 Answers