WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-01-2013, 07:02 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Please wrap code with code tags to preserve indentation. Here's some example code that changes the speed based on a collision with an object that is not rendered:
Code:
torus = vizshape.addTorus(pos=[0,1.8,4])
torus.disable(viz.RENDERING)

def onCollision(info):
	if info.object == torus:
		moveSpeed += 1

viz.callback(viz.COLLISION_EVENT, onCollision)
If you use torus.visible(viz.OFF) the collision event will not get generated.
Reply With Quote
Reply

Tags
joystick, navigation speed, tasks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
joystick position nmohandes Vizard 2 01-16-2012 10:03 AM
[New here] Cave joy navigation esuna114 Vizard 2 06-11-2010 04:36 PM
changing the gain of a joystick during a program Saz Vizard 4 06-25-2009 03:49 AM
Joystick Navigation Vinicius Lima Vizard 7 10-23-2007 10:42 AM
Basic Joystick Navigation Question Plasma Vizard 2 01-29-2004 07:08 PM


All times are GMT -7. The time now is 12:19 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC