AftGangAglay Documentation


mktrans

Parameters

N/A

Return Value

Type Description
dict The initialized transform

Description

Initializes a transform dictionary with the following default state:

Aspect Key Value
Position pos [ 0.0, 0.0, 0.0 ]
Rotation rot [ 0.0, 0.0, 0.0 ]
Scale scale [ 1.0, 1.0, 1.0 ]

Example

import agan

class game():
	def create(self):
		t = agan.mktrans()
		t['pos'][0] = 3.0
		t['scale'][2] = 5.0
		return self
	#
	def update(self):
		pass
	#
	def close(self):
		pass