Help!
by VoroneTZ. 10/14/25 05:04
|
|
|
|
|
|
|
|
|
2 registered members (VoroneTZ, TipmyPip),
9,297
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Unanswered questions
#380471
08/18/11 07:27
08/18/11 07:27
|
Joined: May 2009
Posts: 5,377 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,377
Caucasus
|
As no one seems to know the answers, I've decided to ask them here: "TEX_COLOR" - I used view entities for weapons, and I used to change they color depending on the textures color under players feet. I was simply tracing under player's feet with SCAN_TEXTURE and then setting entitie's "blue" to "tex_color", but now it doesn't work. I tried "tex_light" as some one recommended me, but that doesn't work as well, plus "tex_color" works under C-SCRIPT but not with LITE-C. "PH_CONVEX" - this doesn't work for me... It's different to "PH_POLY" (which has proper hull), convex works like this for me: I would like to know, what am I probably doing wrong? Model is simply, and it's count isn't more than 256 p. "PH_HINGE" - I've started learning constants, and it's seems pretty simple, but I found out that I can't understand something...
action obj_motor()
{
VECTOR temp;
set(my,POLYGON|SHADOW);
pXent_settype(my,1,PH_CONVEX);
pXent_setmass(my,0.05);
pXent_setfriction(my,0);
pXent_setiterations(my,15);
pXent_setdamping(my,100,100);
pXent_setskinwidth(my,0);
pXent_setelasticity(my,25);
pXcon_add(PH_HINGE,my,NULL,0);
pXcon_setparams1(my,NULL,vector(0,1,0),nullvector);
pXcon_setparams2(my,vector(-360,360,0),NULL,NULL);
while(1)
{
temp.x = temp.z = 0;
temp.y = 100 * time_step;
pXent_setangvelocity(my,temp);
wait(1);
}
}
I've set no limit's for joint, and I rotate it in it's TILT, plus I apply velocity, so it should turn clock wise, and it works. But it turns only about 2 times, and then stops.. Didn't I set full limit at hinge? Or what am I doing wrong? Thanks.
|
|
|
Re: Unanswered questions
[Re: jcl]
#380489
08/18/11 09:07
08/18/11 09:07
|
Joined: May 2009
Posts: 5,377 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,377
Caucasus
|
I'll take a look at "hit", thanks. But I would like to know, "tex_color" doesn't work with lite-c for that purpose, right? The action is the same as for the hinge, which I try to move, but without applying velocity, it's looks like this:
action obj_motor()
{
VECTOR temp;
set(my,POLYGON|SHADOW);
pXent_settype(my,PH_RIGID,PH_CONVEX);
pXent_setmass(my,0.05);
pXent_setfriction(my,0);
pXent_setiterations(my,15);
pXent_setdamping(my,100,100);
pXent_setskinwidth(my,0);
pXent_setelasticity(my,25);
}
As you see, skin width is "0"... Didn't get about too-big hull, could you explain? Plus, it works perfect with all other models if I make it static with PH_POLY. Here is the same problem with different models: About stopping hinge, as I placed model at the level, it has -15 tilt, then when I debugged it's tilt, I see that it was decreasing till -90 and then increasing to -0.002 and at this position it stops. I was wrong about 2 turns, it makes only half way. And it stops at the same angle always, I have no idea why.
|
|
|
Re: Unanswered questions
[Re: 3run]
#380531
08/18/11 19:15
08/18/11 19:15
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
@3Run your picture reminds me of my old Physics multiplayer demo when i used green for sending and red for nonsending objects^^
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: Unanswered questions
[Re: 3run]
#380541
08/18/11 21:16
08/18/11 21:16
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
you even visited it^^ edit: oh and with Physics i dont mean physix Link
Last edited by Rackscha; 08/18/11 21:17.
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
|