physics
Hi again, I'm doing a project and I'll need a lot of help.
I want an object to move in y axis and define a hotspot for it, then have another object which moves in x axis and at a point (hotspot) they will meet and collide. I've been able to make them collide but my hotspot starts when I use my mouse, I want when my first ball reaches the hotspot the second ball goes to that position and collide. I've done some things but it doesn't seem professional. Please help me here is my code: Code:
import viz |
A hotspot is triggered when the viewpoint enters or leaves it. Here you have a hotspot that will be triggered when you enter it
Code:
ball1.starthotspot(BALL, viz.CIRCLE_HOTSPOT_IN, 0,0,20) It seems like a hotspot is not what you want here. Get the position of the first ball within a timer function and when it's at the position you want move the second ball towards it. |
Thanks for your help, but what I want is something like proximity, instead of view entering a hotspot I want my object to enter that section and another action take place. Is there anything like proximity in vizard?
|
Help With Physics
please help me with the above problem
|
All times are GMT -7. The time now is 10:29 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC