Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411283 Posts in 69325 Topics- by 58380 Members - Latest Member: bob1029

March 29, 2024, 12:09:44 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Need some help with beginner trigonometry/vector stuff
Pages: 1 [2]
Print
Author Topic: Need some help with beginner trigonometry/vector stuff  (Read 1266 times)
Eendhoorn
Level 6
*

Quak


View Profile
« Reply #20 on: April 15, 2016, 10:06:47 AM »

I didn't have any trouble calculating the trajectory of the ball, I just needed to know where it would end up on the Y position of the dog's location Tongue

You can still get that value using the super-cheap approach i posted* though.

*Spotted a typo ( position.y twice instead of .x & .y ), so i fixed that Embarrassed
I also have some stages with irregular shapes and/or boundaries in the center though, so I needed a bit more of a dynamic approach. It does look super cheap and easy, I wish my brain could "see" math like that  Shrug
Logged

Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic