linking view to avatar
is ther any way of linking the view to an avatar and walk around the environment using the keyboard like in a game?
any help will be really appreciated.. |
try the following code to link the avatar with the mainview
HTML Code:
mainview=viz.clearcolor(viz.SKYBLUE) |
I correct this what you are looking for.
HTML Code:
import viz |
thanks for the reply,
the code works fine apart from the avatar is in the walking state even when you are not pressing anything. is there anyway to make the avatar stand still when no key is being pressed? |
yes just define a function to check the avatar state
|
can you tell me how that is done please
thanks |
I correct something like this:
HTML Code:
avatar_position = avatar.getPosition() |
Thanks that worked, but only one thing left, the avatar dosent have collision, it walks through the walls and other objects. any suggestions
|
All times are GMT -7. The time now is 06:42 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC