Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Conversion Between Degrees and Radians

Featured Replies

Introduction
At some point in time, we all have been exposed to the unit circle, whether it was 
in middle school, high school, or even college/university; however, why is it important

in the realm of development and what does it look like?

For starters, the unit circle serves as a way to convert degrees into radians. This is crucial

especially when working with non-els environmental lighting. In Grand Theft Auto V,

Rockstar Games uses radians as a way to manage start and delta values inside carcols.meta.


Notes: Top half of the unit circle represents the driver side and the bottom half represents the passenger side.
Pi represents the rear and 0 degrees represents the nose of the car.

 

Spoiler

unit-circle7_43215_md.png

 

 

Spoiler

unknown.png

 

 

In order to find how the values were derived in the images, use the equation below!




Converting Degrees Into Radians
The chart above is useful if mathematically inclined; however, for those who are like me
who do not get it right away; I have an easier way to derive values for delta and start.

(degrees°) × (Pi) / 180

NOTES: For all values on the passenger side, use the ones you get on the driver side and make the answer negative.

 

 

 

Q: 'Alright pudding, this is great and all but how is this equation exactly used?! What if I wanted my environmental lighting 35° in carcols.meta?'
A: Just plug and chug! (35) x (Pi or 3.14....) / 180 =   0.610865238


Let's try a few practice problems:

1. If Bobby wanted siren9 reflecting towards the back of his vehicle (180*), what is the Delta Value in the carcols.meta for this specific siren?
(180) x (Pi or 3.14....) / 180 =   3.151592654

2. Jimmy wants his siren1 to reflect on the passenger side of his vehicle at 45*. What is the Delta Value in the carcols.meta for this specific siren?

- [(45) x (Pi or 3.14....) / 180] = - 0.785398163


3. Alex decided that a light was going to face 135* (driver side) on his car. What is the Delta Value? Work this one out and the answer will be in the spoiler below.
 

Spoiler

Answer:     2.35619449



If you had the answer right, congratulations! Now you know how to convert degrees into radians. I know I have not covered the start value but this value
luckily measures in radians just like the delta value does. 
 

Start values essentially offset the env lighting to start in a specific spot when activating your non-els lights.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.