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

ySwap Sealed-bid Auction on Bounce Finance platform

Cyber Roos Whitepaper

Parse String to Syntax Tree (Penn Treebank) in Python

SVG Animations + SASS

AWS Lambda in Java and Terraform

ASSURE AND IT’S ORIGIN!!!

How a PHP interpreter works

From RxJava to Kotlin Flow: Testing

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

2.5D Cert Req: Creating A Ledge Grab

Lighting your scene in Unity using the URP

Introduction to Shaders

Day 97: Game Assets via Filebase