Example #1
0
    private void RotatePowerSource()
    {
        const float pitchSpeed = 100;
        const float yawSpeed   = 200f;

        grabbedObject.SetPosition(receptorHoldPoint.position);
        grabbedObject.RotateObject(new Vector3(pitchSpeed, yawSpeed, 0f) * Time.deltaTime);
    }