Module KX_TrackToActuator
|
|
1
2
3 from SCA_IActuator import *
4
6 """
7 Edit Object actuator in Track To mode.
8
9 @warning: Track To Actuators will be ignored if at game start, the
10 object to track to is invalid.
11
12 This will generate a warning in the console:
13
14 C{ERROR: GameObject I{OBName} no object in EditObjectActuator I{ActuatorName}}
15
16 """
18 """
19 Sets the object to track.
20
21 @type object: L{KX_GameObject} or string
22 @param object: Either a reference to a game object or the name of the object to track.
23 """
25 """
26 Returns the name of the object to track.
27
28 Returns None if no object has been set to track.
29
30 @rtype: string
31 """
33 """
34 Sets the time in frames with which to delay the tracking motion.
35
36 @type time: integer
37 """
39 """
40 Returns the time in frames with which the tracking motion is delayed.
41
42 @rtype: integer
43 """
45 """
46 Sets the tracking motion to use 3D.
47
48 @type use3d: boolean
49 @param use3d: - True: allow the tracking motion to extend in the z-direction.
50 - False: lock the tracking motion to the x-y plane.
51 """
53 """
54 Returns True if the tracking motion will track in the z direction.
55
56 @rtype: boolean
57 """
58