A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: 3D trajectory (more physics)

Threaded View

  1. #3
    Senior Member
    Join Date
    Jun 2002
    Location
    Manchester, UK
    Posts
    2,357
    P.S. Considering, scale is difficult to understand what you mean since your comment is ambiguous. The vectors values should not change with scaling, the position of your objects should be scaled instead. For this in a 3d sence, you would use a scale matrix, this is usually defined as a 3x3 matrix or 4x4 homogeneous matrix such that the values are as follows (the next matrix is commonly used, but you can do it column or row major, up to you):

    sx, 0, 0, 0
    0, sy, 0, 0
    0, 0, sx, 0
    0, 0, 0, 1

    KEY
    ++++++++++++++++
    sx = scale x
    sy = scale y
    sz = scale z
    ++++++++++++++++

    now your vectors can be multiplied by this matrix, ultimatly resulting in your position information.

    RipX
    Last edited by RipX; 10-12-2010 at 06:12 PM. Reason: removal of ambiguity re matrix definition.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center