Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
354 B
1
Indexable
Never
if((randN1 == 0) || (randN1 == 3)){ // trials looming
    float zPos = 2 * Mathf.Cos(angle);
    float yPos = 2 * Mathf.Sin(angle);
    pallina.transform.Translate(new Vector3(0,yPos,zPos));
            
}

float zVel = velBall * Mathf.Cos(angle);
float yVel = velBall * Mathf.Sin(angle);
pallinaCor.startCor(1);
rb.velocity = new Vector3(0, yVel, zVel);