Day 140 — IK Weapon System in Unity Part 3

public Transform target;
public float speed = 10f;
private void LateUpdate()
{
Vector3 targetPosition = target.transform.position;
transform.position = Vector3.Lerp(transform.position, targetPosition, Time.deltaTime * speed);
transform.rotation = Quaternion.Euler(target.transform.rotation.eulerAngles);
}

--

--

--

Hey and welcome! My name is Connor and my goal here is to put out a daily post for a full year about my game development journey.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

In Memory Cache-Apache Ignite

apache ignite

Benefits to using AWS CDK to deploy ETL on AWS Data Lake

Getting started on AWS Data Wrangler and Athena

Date table using Power Query 💪

Careers in Power BI

Celebrating Drupal 21st Anniversary! How has it Been Helping Businesses?

ASP.NET Core Custom User Manager

Why should you learn to code for Quantum Computers?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Connor Fullarton

Connor Fullarton

Hey and welcome! My name is Connor and my goal here is to put out a daily post for a full year about my game development journey.

More from Medium

Setting up a Unity Project for the High Definition Render Pipeline (HDRP)

How to Build an Interactive Security Camera System in Unity

Working with Unity Ads

2D Mobile: Setting Up The Player