# Take a look.. (sinus & Cosinus)

**URL:** <https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687>\
**Category:** Uncategorized\
**Created:** [March 29, 2006, 7:53am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687 "2006-03-29T07:53:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![manga](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manga](https://forum.kirupa.com/u/manga)\
**Post date:** [March 29, 2006, 7:53am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/1 "2006-03-29T07:53:10Z")

</div>

[Today, 09:53 AM]  
hey all,  
i want the dolfin to speed to the ringtarget and at the top slowdown and speed again down…

and if possible make the rotation better of the dolfin… adjusting at the curve of the path…

anyhelp?

i include the fla and a swf…

[■■■■ nobody to help me? [Today, 14:53 PM]]

thanks anyway…

---

<div class="post-metadata">

**Author:** ![manga](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manga](https://forum.kirupa.com/u/manga)\
**Post date:** [March 29, 2006, 8:33am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/2 "2006-03-29T08:33:59Z")

</div>

this is not a crosspost but i realy need this fixed today 🙂 ☹

take a look at this thread i posted before…

[http://www.kirupa.com/forum/showthread.php?t=213938](http://www.kirupa.com/forum/showthread.php?t=213938)

[URL=“[http://www.kirupa.com/forum/showthread.php?t=213938](http://www.kirupa.com/forum/showthread.php?t=213938)”]

---

<div class="post-metadata">

**Author:** ![freddie](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@freddie](https://forum.kirupa.com/u/freddie)\
**Post date:** [March 29, 2006, 8:46am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/3 "2006-03-29T08:46:00Z")

</div>

it still remains to be the wrong place to be posting this!

---

<div class="post-metadata">

**Author:** ![manga](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manga](https://forum.kirupa.com/u/manga)\
**Post date:** [March 29, 2006, 9:04am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/4 "2006-03-29T09:04:01Z")

</div>

maybe not because its a part of a big game… so for me its ([Source/Experiments](http://www.kirupa.com/forum/forumdisplay.php?f=64))…

---

<div class="post-metadata">

**Author:** ![freddie](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@freddie](https://forum.kirupa.com/u/freddie)\
**Post date:** [March 29, 2006, 9:32am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/5 "2006-03-29T09:32:23Z")

</div>

…heheheheehe ok man…

---

<div class="post-metadata">

**Author:** ![manga](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manga](https://forum.kirupa.com/u/manga)\
**Post date:** [March 29, 2006, 10:08am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/6 "2006-03-29T10:08:21Z")

</div>

> [@freddie](#):
>
> …heheheheehe ok man…

🙂

so anyhelp?

hehehehehehheheheheheheheee…

---

<div class="post-metadata">

**Author:** ![freddie](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@freddie](https://forum.kirupa.com/u/freddie)\
**Post date:** [March 29, 2006, 10:45am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/7 "2006-03-29T10:45:50Z")

</div>

nope…

just a note:  
this is where you post finished and done experiements with the sources and not to find some help on your project/ experiment…

bye

---

<div class="post-metadata">

**Author:** ![manga](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manga](https://forum.kirupa.com/u/manga)\
**Post date:** [March 30, 2006, 5:31am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/8 "2006-03-30T05:31:45Z")

</div>

> [@manga](#):
>
> [Today, 09:53 AM]  
> hey all,  
> i want the dolfin to speed to the ringtarget and at the top slowdown and speed again down…
> 
> and if possible make the rotation better of the dolfin… adjusting at the curve of the path…
> 
> anyhelp?
> 
> i include the fla and a swf…
> 
> [damn nobody to help me? [Today, 14:53 PM]]
> 
> thanks anyway…

help?

---

<div class="post-metadata">

**Author:** ![woad](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@woad](https://forum.kirupa.com/u/woad)\
**Post date:** [April 5, 2006, 2:31am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/9 "2006-04-05T02:31:21Z")

</div>

Have no fear Manga, Super Newb Woad is here to save the .Fla!!!  
:disco:

Now, freddie’s right, but I understand your desperation. Actually, Freddie I’d say your a jerk saying that to him, coming here only to tell him that this is the wrong place and not even try to offer help. So anyways, eh, here’s some rotating code from my current project:

myRadians = Math.atan2(\_root.\_ymouse-this.\_y,\_root.\_xmouse-this.\_x);  
myDegrees = Math.round((myRadians\*180/Math.PI));  
this.\_rotation = myDegrees+90;

So wherever you put that is where you’d want the dolphin to move. Except, that makes it turn towards the mouse. Now if you wanted it to turn towards a certain spot, perhaps the targets? Then just do this:

myRadians = Math.atan2(RingTarget.\_y, RingTarget.\_x);  
myDegrees = Math.round((myRadians\*180/Math.PI));  
this.\_rotation = myDegrees+90;

Now as for the speed, since I don’t understand how you’ve gotten what you’ve gotten with that math you put on there… I’m just going to do this:

if (dolphin.\_x == RingTarget.\_x && dolphin.\_y == RingTarget.\_y)  
{  
dolphin.speed = 6  
}

if (dolphin.\_x == SideTarget.\_x && dolphin.\_y == SideTarget.\_y)  
{  
dolphin.speed = 3;  
}

and so on and so forth… Is that any help?:sc:

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 5, 2006, 5:04am UTC](https://forum.kirupa.com/t/take-a-look-sinus-cosinus/183687/10 "2006-04-05T05:04:48Z")

</div>

Merged threads: don’t crosspost :cool:

scotty(-:
