Link Search Menu Expand Document

Class FirstPersonCtrl

Class diagram of class of FirstPersonCtrl.

Functions

Function summury    
__init__(self, canvas)      
teleportation_show(self, show=True)      
teleportation_origin_and_tangent(self, O=(0, 0, 1), t=(1, 0, 0))      
teleportation_transform(self, T, n=(0, 0, 1))      
teleportation_distance(self, D=5)      
teleportation_z_axis(self, n=(0, 0, 1))      
teleportation_ground_offset(self, Hn=0)      
teleportation_update(self)      
teleportation_goto(self)      
on_event(self, canvas, item, key, event)      
disconnect(self) disconnect the first person control (more…)    
add_ground(self, filename) add a ground. A ground is a polyhedron file defining the surface where we stand up (more…)    
ground_0(self, size, Z) Creates a ground at z=0 (more…)    
set_ground_0_size(self, size, Z) Set ground 0 size (more…)    
set_ground_0_texture(self, ground=’soil’) soil grass granite (more…)

Methods desciption :

init

def __init__(self, canvas)

teleportation_show

def teleportation_show(self, show=True)

teleportation_origin_and_tangent

def teleportation_origin_and_tangent(self, O=(0, 0, 1), t=(1, 0, 0))

teleportation_transform

def teleportation_transform(self, T, n=(0, 0, 1))

teleportation_distance

def teleportation_distance(self, D=5)

teleportation_z_axis

def teleportation_z_axis(self, n=(0, 0, 1))

teleportation_ground_offset

def teleportation_ground_offset(self, Hn=0)

teleportation_update

def teleportation_update(self)

teleportation_goto

def teleportation_goto(self)

on_event

def on_event(self, canvas, item, key, event)

disconnect

def disconnect(self)

disconnect the first person control

add_ground

def add_ground(self, filename)

add a ground. A ground is a polyhedron file defining the surface where we stand up it opens the capacity to define various level and ramps between levels.

ground_0

def ground_0(self, size, Z)

Creates a ground at z=0 parameters: ———–

  • size

returns:

the quad nod used as ground

set_ground_0_size

def set_ground_0_size(self, size, Z)

Set ground 0 size

set_ground_0_texture

def set_ground_0_texture(self, ground='soil')
soil grass granite