delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/31/03:45:52

From: Henri Ossi <henriossi AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: SIN and COS
Date: Mon, 31 Mar 1997 10:32:15 +0300
Organization: Telecom Finland News Service
Lines: 14
Message-ID: <333F687F.6EF4@geocities.com>
NNTP-Posting-Host: pc1018.public.htk.fi
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

 Is there any way to "smooth" an object, which movees with the sin and
cos functions?
I use float variables to calculate next position, and then i add them to
float variables, which i then translate to integer variables.
(integer_var = (int) float_var)
But when the ball moves across the screen, I can see this "jumping
around".
It isn't steady.
How can I "smooth" it?
Should I somehow calculate a center position between two calculated
points?

Thanks for your answers.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019