Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Beginner problem.... Problema de Novato  (Read 1183 times)
Mictian
Community Member
*
Posts: 4


« on: January 19, 2008, 10:06:03 AM »

Hi, all!  Smiley

I’m beginner in 3D designer…
Well my problem. how I can know if two mesh (objects) is collision? 
Already try with "Collision" method of the class TVMesh but the truth is that I have anything’s…
 
Thank you

P.D. También soy Nuevo escribiendo en ingles… espero sepan entender... desde ya muchas gracias
Logged
Dan
Customers
Community Member
*****
Posts: 707


WWW
« Reply #1 on: January 29, 2008, 08:01:30 AM »


Truevision 6.5 works in a very similar way to older versions so you'll find that the documentation should give you a good idea on how to do certain things.

http://www.truevision3d.com/tvdna/source/functions/collision57.htm

An alternative is to use the Physics engine to do you collisions. Do a search of the forums - It is slightly more involved to setup. But doesn't require checking each frame.


---

Truevision 6.5 trabajos de una manera muy similar a más viejas versiones así que a usted encontrará que la documentación debe darle una buena idea en cómo a haga ciertas cosas.

http://www.truevision3d.com/tvdna/source/functions/collision57.htm

Un alternativa es utilizar el motor de la física para hacerle las colisiones. Haga una búsqueda de los foros - está levemente más implicada setup. Pero no requiere la comprobación de cada marco.

PD, usted no necesita disculparse por usted inglés. Mi español es no existente y necesito utilizar los pescados de Babel-fish comunicarme.

Logged
Mictian
Community Member
*
Posts: 4


« Reply #2 on: January 30, 2008, 12:19:16 PM »

Tank!!

Muchas gracias la verdad me ha servido!!

No me quedo 100% clara la ayuda pero termine usando TVMesh.estBoxCollideWith(TVMesh)

Desde ya muchas gracias
Logged
masmas
Community Member
*
Posts: 20


« Reply #3 on: May 04, 2008, 03:53:47 AM »

I apologize to post something not in english here is the translate...

Hola Mictian;
Hi Mictian

Si usas TVActor esta seria una forma simple de hacer una colision
If u use TVActor object this is the way to make an simple collision



//We first check if the player is collinsion with a bad guy
//Verificamos que si el jugador choca contra un malo
if(jugador.Collision(malo.GetPosition(), malo.GetPosition(),CONST_TV_TESTTYPE.TV_TESTTYPE_BOUNDINGBOX))
{
//To make it more realistic we change the animation use any to simulate a kick, punch or shoot
//Para hacerlo mas realista cambio la animacion del malo
                malo.SetAnimationByName("airkick2");
                malo.PlayAnimation();

//And we do the same with our player TVActor Object any animation that look like been hit or falling will do it
//Asi mismo cambio la del jugador para que se vea que fue alcanzado por el malo
                jugador.SetAnimationByName("die_spin");
                jugador.PlayAnimation();
//Don't forget to move your player if not you will had forever hit
//recoremos el jugador por que de otra manera se quedaria por siempre colisionado
                sngPositionX = malo.GetPosition().x - 30;
                sngPositionY = malo.GetPosition().y - 30;
                sngPositionZ = malo.GetPosition().z - 30;
}
Hope this will help u
Espero esto te ayude
« Last Edit: May 04, 2008, 10:21:26 PM by masmas » Logged
Mietze
Community Member
*
Posts: 223


« Reply #4 on: May 04, 2008, 08:11:15 AM »

Oo

una bluna fanta bamboocha.. this is an english forum guys Tongue
Logged
masmas
Community Member
*
Posts: 20


« Reply #5 on: May 04, 2008, 04:28:58 PM »

wups sorry had about spanglish? just kidding... Tongue
Logged
Pages: [1]
  Print  
 
Jump to:  

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