Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        var body_l = Target.BodyL();
        var offset = body_l * Scale;

        transform.localPosition = DVector3.ToUnity(offset);
    }
Beispiel #2
0
    void UpdatePosition()
    {
        var body_l = Body.BodyL();
        var offset = body_l.normalized * 4;

        transform.localPosition = DVector3.ToUnity(offset);
        transform.LookAt(MomentumSphere.transform);
    }