walkabout class This class is used to enable walking over geometry in Omegalib. More...
Static Public Member Functions | |
def | init |
Initialize by setting the desired camera to use. More... | |
def | setClimbRatio |
Set climb ratio The proportion of the body height that constitutes something you can climb. More... | |
def | setRayAngle |
Set the angle at which a sloped ray is fired to check for obstacles in your way as you navigate. More... | |
def | setClimbInterpolationSpeed |
Set the speed at which climbing and falling is interpolated. More... | |
def | setWallCheck |
Enable or disable wall collision checking. More... | |
def | setFloorCheck |
Enable or disable floor collision checking. More... | |
def | update |
Call this function each time in your OmegaLib update function and give it the dt. More... | |
walkabout class This class is used to enable walking over geometry in Omegalib.
Collision detection is also provided so that you can't walk through walls or over high tables or fences, for example. It works by firing a ray downward in the scene to determine how high to raise you, and it also fires a second ray forward and downward to look for barriers in the direction you are walking.
|
static |
Initialize by setting the desired camera to use.
camera | camera to use for navigation (usually from getDefaultCamera()) |
|
static |
Set the speed at which climbing and falling is interpolated.
speed | Valid ranges are > 0 and <= 1 |
|
static |
Set climb ratio The proportion of the body height that constitutes something you can climb.
ratio | Default is 0.3. e.g. if climbRation is 0.3 that means you can climb things that are 30% of your body height Valid ratios are > 0 and <= 1 |
|
static |
Enable or disable floor collision checking.
By default it is enabled.
val | Set to True to enable wall floor checks or False otherwise. |
|
static |
Set the angle at which a sloped ray is fired to check for obstacles in your way as you navigate.
angle | Default is 20 degrees. e.g. 20 degrees means the ray is 20 degrees from the vertical aimed downwards from the head. Valid angles are > 0 and <= 90 |
|
static |
Enable or disable wall collision checking.
By default it is enabled.
val | Set to True to enable wall collision checks or False otherwise. |
|
static |
Call this function each time in your OmegaLib update function and give it the dt.
dt | Give it dt from Omegalib's update function. |