Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Matrix Question

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 244 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 30/03/2010 at 17:36, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello,

      I am creating a Matrix that will be used as the matrix for my particles.

      I have a few questions about Matrices.

      When I Create a matrix like...

      Matrix m;

      I would like to know the following...

      is...   m.off = the center position of the matrix.  Where it is centrally located in global space?

      also...  when I define the axis vector (i.e m.v1, m.v2, and m.v3) am I defining the position in global space that the tip of the axis is pointing toward?

      If this is true, by defining a matrix like this.

      Matrix m;
      m.off = Vector(0, 0, 0);
      m.v1 = Vector(100, 0, 0);
      m.v2 = Vector(0, 100, 0);
      m.v3 = Vector(0, 0, 100);

      I am creating a matrix that sits at world center with axis that extend outward a perfect center for x, y, and z 100..   Right?

      Hopefully these questions make sense.   My ultimate goal is to create a matrix for my particles so that they can be moved, rotated, and scaled with the matrix.

      Is my understanding of creating  a matrix correct?

      Thanks..

      PS   If I am noit correct,  could someone explain to me what the v1, v2, and v3 represent.

      Thanks.

      ~Shawn

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 31/03/2010 at 02:17, xxxxxxxx wrote:

        the length of v1,v2 and v3 also defines the scale of the object. Check the C++ AND coffee documentation, it´s explained in there. Otherwise take a look at matrix operations in general in every math book for further information.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post