Results 1 to 4 of 4

Thread: about TBGL getting rotations

  1. #1

    about TBGL getting rotations

    Ive a question to Petr Schreiber:
    Is it possible to make a three new keywords?

    to get angle between the position of one entitie and the local coordinate of another.

    For exemple entity A is positionned at 0,0,0; entity B is positionned at 0,2,2 and is looking at 0,0,4.
    Axe around turning is local B x and axe reference to start turning is local B z.

    The value would be 3*M_Pi/2 or M_Pi/2 (because of the direction of the rotation)
    ( Thanks to thinbasic and to Petr Schreiber)

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,103
    Blog Entries
    5
    Rep Power
    729

    Re: about TBGL getting rotations

    Hi,

    thanks for the suggestion.

    Did you checked the following functions?:
    TBGL_EntityGetAngleXY
    TBGL_EntityGetAngleXZ
    TBGL_EntityGetAngleYZ

    It returns angle between two entities in given plane. You can see it used ( for example ) in:
    SampleScripts\TBGL\TBGL_0220_Samples\ControlTargettingAndInfo

    Returned angles are in degrees.
    I think it is basically what you wrote about, if not, please give me more details and I can work on it.


    Thanks,
    Petr

    P.S. It is little more comfortable for me when you post suggestions directly in "Suggest new features" subforum of TBGL module, I can easily check what is done and what I forgot
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3

    about TBGL getting rotations

    Could i send you my project to show you what am i looking for?

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,103
    Blog Entries
    5
    Rep Power
    729

    Re: about TBGL getting rotations

    Sure,

    please attach it here if possible.


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. New TBGL related article that r.o.c.k.s, on TBGL website!
    By Petr Schreiber in forum TBGL module by Petr Schreiber
    Replies: 6
    Last Post: 09-11-2007, 10:03

Posting Permissions

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