User Tag List

Results 1 to 4 of 4

Thread: Problem with MMF2 trig functions...

  1. #1
    No Products Registered

    Join Date
    Nov 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with MMF2 trig functions...

    Hello... I'm having trouble with MMF2's trig functions. When I create a ball movement I always make an angle and find the X and Y speeds from that. My problem is that some trig functions are being bad by exaggerating some values and not being competent with others. Here's a test file for you to look at: http://www.sharebigfile.com/file/127565/balltut-mfa.html

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with MMF2 trig functions...

    Seems fine to me.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with MMF2 trig functions...

    I think your problem lies in the fact that the coordinates are stored as whole numbers. Each time you change the coordinates, you get a rounding error, which in effect makes it look like the angle of the object is rounded. An easy way to get around this is to use alterable values, which can store floating point numbers, to represent the object's position for more accurate coordinates. Just set the object's on screen coordinates to the alterable values for display.

  4. #4
    No Products Registered

    Join Date
    Nov 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with MMF2 trig functions...

    I'll try that.

Similar Threads

  1. Hyperbolic Trig Functions and their Inverses
    By Gerblegod7 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 29th May 2012, 11:47 PM
  2. Maths functions in MMF2
    By TheSynapse in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th November 2011, 07:15 PM
  3. Atan2 Trig is crashing MMF2 in Windows 7?
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd November 2010, 12:44 PM
  4. Trig functions
    By GamesterX23 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st January 2007, 03:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •