Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Direction Caculation to an object

A Config Script for Baldi's Basics

No ads for members. Membership is 100% free. Sign up!
4 134 bytes Raw Code
1
2
3
4
public Vector3 DirectionCaculation(Vector3 targetObject, Vector3 movingObject)
{
return (targetObject - movingObject).normalized;
}
I've been currently had to a lot of vector math when it comes to Baldi's Basics in Boss Battles. One such is direction so I have this handy function/void I made to give you it. Make sure to credit me if you use this. It's recommened if you put this in your GameController Script because its the most relevant and easiest to reference.
Sign up to access this!
  • JohnsterSpaceProgram avatar
    Dynablocks Work
    2,557 points Ranked 20138th
    26 medals 2 legendary 4 rare
    • 2019 Top Contributor Medal icon
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Reached 50 subscribers Medal icon
    • Received thanks 50 times Medal icon
    JohnsterSpaceProgram Johnster Space Studio Flag
    Affiliation
    Johnster Space Studio
    access_time 13d
    Do you use this to determine that if the player is a certain distance from a boss, then the boss won't attack them? Or have you used it for something else when determining player distance from a boss?
    Pro Modder, Dev, Helper, Coder avatar
    Mantra
    Pro Modder, Dev, Helper, Coder
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
RealT5mpler
465 points Ranked 47757th
15 medals 3 rare
  • Returned 1000 times Medal icon
  • 25 posts awarded Exemplary Feedback Medal icon
  • Submitted 15 Tutorials Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
Script creator

Submitter

RealT5mpler avatar
RealT5mpler Joined 9mo ago
465 points Ranked 47757th
15 medals 3 rare
  • Returned 1000 times Medal icon
  • 25 posts awarded Exemplary Feedback Medal icon
  • Submitted 15 Tutorials Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
RealT5mpler
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Attributes

Language
CSS

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 1
  • 169
  • 2
  • 14d
  • 14d

More from Submitter

WiPs by Submitter

More Other/Misc Scripts