Can I apply a force on an object by running into it?
I'm trying to create a stack of barrels that will fall apart when the user bumps into them. As is, nothing happens but if i apply force to another object in the barrels' direction they do fall.
I get the feeling it's only something small but as I'm relatively new to Vizard, I'm not too sure. |
Yes, you could try placing a collision shape at the viewpoint location to detect the collision. Then in the collision callback, add a force to the object that was collided with:
Code:
import viz |
All times are GMT -7. The time now is 04:36 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC