WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-11-2017, 11:19 PM
zytcll zytcll is offline
Member
 
Join Date: Jan 2017
Posts: 1
Physics engine problem

Hi,

I have a long bar with nodes from [node00] to [node10] side by side, and its center is as same as [node05].

Now I want to let parts of nodes visible and fall down, so I set collideBox to only these nodes, and set other nodes with collideNone.

When center node [node05] is included in collision nodes, it works normally. However, when center node is node included, it starts rotating after landing.

Code:
bar.setPosition([0, 4, 0] )
	
for i in range(11):
	nodeName = "bar"
	if k < 10:
		nodeName  += str(0)
	nodeName  += str(k)
			
	if (k > 6) and (k < 9):
		bar.visible(viz.ON, node = nodeName  )
		bar.collideBox(node = nodeName)
	else:
		bar.visible(viz.OFF, node = nodeName)
I think I should reset the center of the bar, but it still works badly after I use setCenter(pos), so is there any way to solve this problem?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Physics engine update rate and display rate zharuViz Vizard 12 10-28-2013 06:52 AM
joint and motor( physics engine) m.jamal1987 Vizard 2 03-10-2011 01:42 AM
Physics Problem Sandro Holzer Vizard 4 03-29-2009 10:51 PM
physics engine exception ad_astra Vizard 3 03-25-2009 11:31 AM
Physics engine question adimov Vizard 2 07-22-2004 12:33 PM


All times are GMT -7. The time now is 08:23 AM.


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