WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-20-2004, 11:23 PM
adimov adimov is offline
Member
 
Join Date: Sep 2003
Location: Santa Barbara, CA
Posts: 11
Question Physics engine question

I am using the physics engine and when I run the following code:

cane2=viz.add('cane2.WRL')
cane2.scale(.007, .007, .007)
gravity = viz.addplane(0,1,0,0)
body = viz.addbody()
body.addbox(0.05,1.5,0.05,1)
cane2.link(body)

the object cane2 shoots up in the air before falling down on the ground...

Actually, let me explain what I want to do: I want to have an object in a world that I will position in an arbitrary location, resize and rescale it. Then, when I press a key, I would like to enable the physics engine and have the object fall. It may be easer to show me how to do that. I've followed the physics2 example, but will need more help.
Thanks very much,

Alex from RECVEB
Reply With Quote
 


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


All times are GMT -7. The time now is 03:42 PM.


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