Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001518 [Croquet] Jasmine feature always 07-22-05 01:39 07-22-05 01:39
Reporter elenzil View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0001518: [enh] new method for TFrame: moveAvatarToHere
Description ----------------------------------------------------
moveAvatarToHere
     self moveAvatarToHere: 10.
----------------------------------------------------
moveAvatarToHere: distance

    "Move the avatar/camera to self.
     Position the camera distance units away from self,
     on the same XZ plane as self,
     and point the camera straight at self.
      This is different than the style in TWindow
     in that self's orientation is ignored -
     the camera simply moves straight towards self.

     this will have trouble if the camera is directly below or above self.
     oxe 200507"

    | av trans v |
    av _ CroquetGlobals theTeapotMorph activeCamera avatar.
    v _ av globalPosition - self globalPosition.
    v y: 0.0.
    v _ v normalized.

    trans _ B3DMatrix4x4 new.
    "side"
    trans a11: v z.
    trans a21: 0.0.
    trans a31: v x negated.
    "up"
    trans a12: 0.0.
    trans a22: 1.0.
    trans a32: 0.0.
    "forward"
    trans a13: v x.
    trans a23: 0.0.
    trans a33: v z.
    trans translation: (v * distance) + self translation.
    av meta goto: trans count: 20.
----------------------------------------------------
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
07-22-05 01:39 elenzil New Issue


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker