Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trig functions?
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#1
trig functions?

Can I use trig functions in HPS? I've tried a few different ways of writing it but all have so far failed.
I don't have a specific idea yet, but they could come in use when trying to make the player go dizzy and start shaking his head, or to make lights oscillate between multiple different colours
(these are poor examples i know Smile, I could probably come up with better ones with a bit of time).

So far I have tried:

Sin(30.0f)
sin(30.0f)
Sine(30.0f)
sine(30.0f)

Is there a way? I could make a few cool effects if it's possible, but so far I've had no luck...


(This post was last modified: 10-04-2011, 07:49 PM by DRedshot.)
10-04-2011, 07:48 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: trig functions?

Well, normally you need to import math library, but I didn't look into how to's in AngelScript, current documentation pretty much takes care of everything for me.

10-04-2011, 07:51 PM
Website Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: trig functions?

http://www.frictionalgames.com/forum/thr...l#pid91570

Tutorials: From Noob to Pro
10-05-2011, 12:41 AM
Website Find
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#4
RE: trig functions?

Cheers again, You've helped me out a few times now.


Also, credit to Apjjm for actually taking the time to write that up!

(This post was last modified: 10-05-2011, 12:54 AM by DRedshot.)
10-05-2011, 12:53 AM
Find




Users browsing this thread: 1 Guest(s)