Results 1 to 4 of 4

Thread: How to rotate the pool while the balls going?

  1. #1
    Member Newbie
    Join Date
    Oct 2001
    Location
    Beijing, China
    Posts
    37

    How to rotate the pool while the balls going?

    I'm totally a beginner. I don't know how to rotate the pool while the balls going in my Pool3D game.

    I assigned the rotation variables to the mouse so that I can rotate the pool by moving the mouse, and then I wrote a procedure (in Delphi) to make the balls going:

    procedure go;
    ...
    repeat
    handle_contacts;
    update_balls;
    paint;
    until all_balls_stopped;
    ...

    It did work. But then I found that I can't rotate the pool with the mouse while the balls going on it. How can I rotate it with the balls going at the same time? Please help!

    Thanx in advance.


    [This message has been edited by Dong Ke (edited 10-24-2001).]

  2. #2
    Member Contributor
    Join Date
    Oct 2001
    Location
    Germany
    Posts
    60

    Re: How to rotate the pool while the balls going?

    You can f. a. move the Camara in every Animation step or you can befor you make any other movement do a rotation.

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Oss,n-brabant, holland
    Posts
    17

    Re: How to rotate the pool while the balls going?

    try to use application.processmessages within your loop so other procedures can be called within the loop

  4. #4
    Member Newbie
    Join Date
    Oct 2001
    Location
    Beijing, China
    Posts
    37

    Re: How to rotate the pool while the balls going?

    I really appreciate it if you can tell me more about application.processmessages

Similar Threads

  1. Replies: 7
    Last Post: 10-09-2017, 08:33 AM
  2. C# OpenGL moving Balls
    By CrazyPerson in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-12-2011, 05:12 PM
  3. rolling two balls + reflection
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-10-2001, 07:05 AM
  4. Hairy balls
    By JamesP in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 01-16-2001, 03:57 PM
  5. Replies: 6
    Last Post: 10-09-2000, 09:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean