Public feed #2127448

Untitled

public text v1 · immutable
Raw Edit
·published 2012-03-12 21:44 UTC
rendered paste body
function LateUpdate () {

    if (target) {
    
    if (Input.GetMouseButton(1)){
        
        y = target.eulerAngles.y; 
        
        var rotation:Quaternion = Quaternion.Euler(x, y, 0); 
        
        transform.rotation = rotation; 
 }}