This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk
Forum rules
Forum rules
Math Functions
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
-
ClockworkDice
- Fighter

- Posts: 28
- Joined: Wed Nov 02, 2016 12:59 am
- Started SFD: Sometime in Pre-Alpha
- Gender:
Math Functions
I want to use trigonometry functions in my scripts, is there any way to do that? Thanks.
0 x
-
ClockworkDice
- Fighter

- Posts: 28
- Joined: Wed Nov 02, 2016 12:59 am
- Started SFD: Sometime in Pre-Alpha
- Gender:
I didn't even think of that, but that could totally work. I'm actually trying to script a helicopter and need to use the angle of the helicopter to determine what force to apply to it. For example, if the helicopter is tilted slightly to the right it would fly to the right with slightly less force going upwards.
I've currently got hoverboard type vehicles working but I want to have it act like a real helicopter.
I've currently got hoverboard type vehicles working but I want to have it act like a real helicopter.
0 x
- TheOriginalCj
- Moderator

- Posts: 177
- Joined: Tue Mar 15, 2016 10:28 pm
- Title: Lifetime Sentence to SF Wiki
- SFD Alias: RedneckJed
- Started SFD: PreAlpha 1.1.0
- Location: USA
- Gender:
- Contact:
This is mostly just creative thinking in C#. If the object is going to stay at a constant Y, this is much easier to script for. If not, then this isn't something I can solve so easily. Or perhaps I'm misinterpreting something here.
Do you already have an idea of what you want to do, but you're not sure if SFD has functions you need? Or do you need some insight as to how to solve this? Either way, we're here to help.
Do you already have an idea of what you want to do, but you're not sure if SFD has functions you need? Or do you need some insight as to how to solve this? Either way, we're here to help.
0 x
Superfighters Wiki Founder
The Superfighters Wiki
Join the Wiki!
The Superfighters Wiki
Join the Wiki!
Danger Ross wrote: What are you doing here wiki-slave?! GET BACK TO WORK!
-
ClockworkDice
- Fighter

- Posts: 28
- Joined: Wed Nov 02, 2016 12:59 am
- Started SFD: Sometime in Pre-Alpha
- Gender:
I already know how I would implement the code, I just need to know if SFD has sine cosine and tan functions that I can use. If they don't I won't be able to accurately calculate the x and y Velocities using the angle.
0 x
- TheOriginalCj
- Moderator

- Posts: 177
- Joined: Tue Mar 15, 2016 10:28 pm
- Title: Lifetime Sentence to SF Wiki
- SFD Alias: RedneckJed
- Started SFD: PreAlpha 1.1.0
- Location: USA
- Gender:
- Contact:
Nope. Usually when something is resolved we lock it. So... Locked...
0 x
Superfighters Wiki Founder
The Superfighters Wiki
Join the Wiki!
The Superfighters Wiki
Join the Wiki!
Danger Ross wrote: What are you doing here wiki-slave?! GET BACK TO WORK!

