|
get_hitvertex
#146026
08/05/07 19:51
08/05/07 19:51
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
hallo i have a problem white this code
it trace but i dont get the vertex fisrt time i try this function because i am going to use thise white vec_to_mesh so i realy need that vertex_search i tried to set vec_set and more but getvertex stays -1 watever i tryed sombody a idee thx
var getvertex;
while(1) { c_trace(my.x,vector(my.x,my.y,my.z-100),use_box && get_hitvertex); getvertex = hitvertex; wait(1); }
"empty"
|
|
|
Re: get_hitvertex
[Re: Ahriman]
#146028
08/05/07 20:24
08/05/07 20:24
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
thx but it didnt work it stays -1
more infi from manaul >><<
c_trace(VECTOR* from, VECTOR* to, var mode) Sends a ray from the from position to the to position and checks whether this ray hits an obstacle on its way. This is the general instruction that is used by entities to detect their environment. Parameters: from Start position vector to Target position vector mode Tracing mode, see below
The following mode flags can be combined: GET_HITVERTEX When a model is hit, the number of the hit vertex will be returned in the hitvertex variable. Mutually exclusive with USE_AABB.
Modifies: hitvertex The hit object's closest vertex number, when mode is set to GET_HITVERTEX.
"empty"
|
|
|
Re: get_hitvertex
[Re: fogman]
#146030
08/05/07 20:45
08/05/07 20:45
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
thx i tried somthing else
from
c_trace(my.x,vector(my.x,my.y,my.z-100),use_box && get_hitvertex); to c_trace(my.x,vector(my.x,my.y,(my.z-100)),ignore_me | get_hitvertex);
now it works i think its the use_box it wasnt ignore_me thx all
"empty"
|
|
|
|