Public Member Functions | |
def | __init__ |
def | introduction |
def | catchingUp |
Public Attributes | |
velocity | |
A 3D vector for the Character's velocity. | |
acceleration | |
A 3D vector for the Character's acceleration. |
A GameObject that can move in space and have a behaviour. player or NPC
def Character.Character.__init__ | ( | self, | |
objid, | |||
position, | |||
gridposition, | |||
rotation, | |||
scale, | |||
lookat, | |||
tags, | |||
visibility, | |||
interactability, | |||
interactiondomain, | |||
v0, | |||
a0, | |||
isrigid = False , |
|||
parent = None , |
|||
layer = None , |
|||
interactiontimelimit = 0 , |
|||
script = None , |
|||
team = None , |
|||
latency = 0 , |
|||
score = 0 |
|||
) |
Character.__init__(self, objid, position, gridposition, rotation, scale, lookat, tags, visibility, interactability, interactiondomain, v0, a0, isrigid = False, parent = None, layer = None, interactiontimelimit = 0, script = None, team = None, latency = 0, score = 0 ) Initialization function for a Character. All arguments except v0 and a0 are documented on GameObject class v0 is a 3D vector of the object's initial velocity a0 is a 3D vector of the object's initial acceleration
def Character.Character.catchingUp | ( | self | ) |
Generates a JSON friendly dictionary with all the object's attributes and values. This function is intended as a update on the object's state, sent to receivers that are already able to identify the object.
Reimplemented from GameObject.GameObject.
def Character.Character.introduction | ( | self | ) |
Generates a JSON friendly dictionary with all the object's attributes and values. This function is intended as a first introduction of the object, to receivers that are unaware of its existence.
Reimplemented from GameObject.GameObject.