Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: need help with collision  (Read 1837 times)
Oldnick
Community Member
*
Posts: 121


WWW
« on: August 11, 2004, 05:25:20 AM »

i have sphere on scene and mouse coords (klick on sphere).... how calculate 3d coordinates? :roll:
Logged

Бабло побеждает зло™
BYTE-Smasher
Community Member
*
Posts: 956

vaporware makes baby jesus cry


WWW
« Reply #1 on: August 11, 2004, 05:48:49 AM »

Dim Pick As TVCollisionResult
Set Pick = TVScene.MousePicking(CurrentMouseX, CurrentMouseY, 0, TV_TESTINGTYPE)
If Pick.IsCollision = True Then
Scene.DrawText "Impact " & Pick.GetImpactPoint.X & " " & Pick.GetImpactPoint.Y & " " & Pick.GetImpactPoint.Z, 20, 30
End If
Logged

Oldnick
Community Member
*
Posts: 121


WWW
« Reply #2 on: August 11, 2004, 10:22:53 AM »

Thanks! its work, but how to check collision with ONLY one object?

ps
i check meshmane when collision but i think its not right or not?
Logged

Бабло побеждает зло™
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks