Is this possible? Lost on math
3 posts
• Page 1 of 1
Is this possible? Lost on math
I’m attempting to create a stick pattern with the right analog stick but the polar coordinates are defeating me.
This is what I’m after but it appears theta is not a valid mathematical function.
Is it possible and any help would be appreciated
This is what I’m after but it appears theta is not a valid mathematical function.
Is it possible and any help would be appreciated
-
Twitchsfl - Private
- Posts: 1
- Joined: Tue Jun 15, 2021 4:04 am
Re: Is this possible? Lost on math
Sorted on Discord.
- Code: Select all
main {
fix32 theta = (fix32)system_time()/100f;
set_val(STICK_1_X, cos(theta) * 5f);
set_val(STICK_1_Y, sin(theta) * 5f);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4532
- Joined: Wed May 22, 2019 5:39 am
Re: Is this possible? Lost on math
Straight over my head, but it's great to see some of the more complex (or simple...I can't tell) math being used on T2
What's the purpose of this pattern? Looks like aim assist abuse.
What's the purpose of this pattern? Looks like aim assist abuse.
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 89 guests