South::CodeFF
Just some stuff from a bunch of LV coders
  Menu
Skip to content
  • Home
  • Copy-paste material

Category Archives: Code snippets

Newer posts »

Rotation in Unity

By Vampire | March 6, 2019 - 6:22 pm |March 7, 2019 Code snippets, Unity
Leave a comment

transform.rotation = Quaternion.LookRotation(
    Vector3.RotateTowards(
        transform.forward, 
        target.position - transform.position, 
        turnSpeed * Time.deltaTime, 
        0f
    )
);

12
  • Recent Posts

    • MQTT C#
    • develop Notepad++ plugins (in c#).
    • Windows Service Creation
    • Actions with retries
    • Adding separator line in WinForms
  • Recent Comments

    • Archives

      • March 2021
      • September 2020
      • February 2020
      • November 2019
      • August 2019
      • July 2019
      • June 2019
      • May 2019
      • March 2019
    • Categories

      • .NET
      • Active Directory
      • cmd
      • Code snippets
      • PowerShell
      • Practical physics
      • SQL
      • Stupid
      • Uncategorized
      • Unity
      • WinForms
    • Meta

      • Log in
      • Entries feed
      • Comments feed
      • WordPress.org
    "I reject your reality and substitute my own."
    South::CodeFF | Powered by Mantra & WordPress.