Encode(self,
position=[0.0, 0.0, 0.0],
orientation=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]],
heading=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]],
state=0,
action=0,
scene=0)
| source code
|
- Parameters:
position (= 3*1 Vector) - Vector [posX, posY, posZ]
orientation (3*3 Matrix) - [[r11, r12, r13],[r21, r22, r23],[r31, r32, r33]]
heading (3*3 Matrix) - [[h11, h12, h13],[h21, h22, h23],[h31, h32, h33]]
state (Integer) - the last state the player was in
action (Integer) - the Action played by the player
scene (Integer) - the scene in which the client was seen the last time he
disconnected.
- Returns: Byte Array. 'B' + 'fffffffffBBB'
- the encoded data
|