|
0 registered members (),
6,962
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
how do you make your object inpassable?
#254093
03/01/09 02:55
03/01/09 02:55
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
Hi,
I told you earlier that I have a zombie and a player but thay penetrate each other and the player can move through the zombie easily.
I checked th Polygon for both player and zombie in WED. At first I thought it works, but now i undrestand most of the times the player can walk through the zmobie very easily (I said most of the times not all the times).
I want to know how do you make your object solid?! Is it because of the model itself?! Is Polygon for making the models solid?!
Don't forget that i placed the models in center in 3Ds max before exporting.
I don't care!
|
|
|
Re: how do you make your object inpassable?
[Re: Mahdi]
#254097
03/01/09 07:56
03/01/09 07:56
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
dont use polygon flas vor moving objects, try bbox instead.
3333333333
|
|
|
Re: how do you make your object inpassable?
[Re: Quad]
#254100
03/01/09 08:16
03/01/09 08:16
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
Tried it, but it does not work completely.
I changed my player model to Cbabe and checked the bbox. It works. I mean Cbabe cann't walk through the zombie. Maybe the problem comes from my player model. I export it using FBX exporter. Is there something special that I didn't do?!
I don't care!
|
|
|
Re: how do you make your object inpassable?
[Re: Mahdi]
#254103
03/01/09 09:15
03/01/09 09:15
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
try c_setminmax(player); to create a bounding box around your player.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: how do you make your object inpassable?
[Re: Max_Prower]
#254114
03/01/09 10:15
03/01/09 10:15
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Also, did you import the FBX of your model into MED and save as a MDL? If you have, open the MDL in MED and use the "mesh tester" option under tools. if there are any "open" meshes, that MAY be where the problew is.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: how do you make your object inpassable?
[Re: EvilSOB]
#254148
03/01/09 12:52
03/01/09 12:52
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
Yeah, I imported it as FBX and there is no open meshes (All meshes 1, Closed: 1, Open: 0).
I did what Sylar said, it didn't work again!
If there is no other suggestion, I accecpt this as a bug for my game.
I don't care!
|
|
|
Re: how do you make your object inpassable?
[Re: Mahdi]
#254160
03/01/09 13:59
03/01/09 13:59
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
What code are you using to move your player? Can you post it, or is it templates? If it is templates, are they the c-script or lite-c templates?
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: how do you make your object inpassable?
[Re: EvilSOB]
#254200
03/01/09 17:48
03/01/09 17:48
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
This is my zombie's C_move:
c_move(my,vector(5*time,0,0),nullvector,ignore_passable + glide);
This is my player's:
move_vec[0] = (key_cuu - key_cud)*25 * time + (key_v * 10) * key_cuu * time; player.pan += (key_cul-key_cur)*8 *time; move_mode=IGNORE_PASSABLE+ GLIDE; ent_move(move_vec,vector(0,0,0));
The player moves when you press the UP and Down key. If you press Up and V together it runs. I hope the problem comes from these codes and not from anything else...
I think to solve this problem I should use a kind of trick.
I don't care!
|
|
|
Re: how do you make your object inpassable?
[Re: EvilSOB]
#254202
03/01/09 17:54
03/01/09 17:54
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
This is my zombie's C_move:
c_move(my,vector(5*time,0,0),nullvector,ignore_passable + glide);
This is my player's:
move_vec[0] = (key_cuu - key_cud)*25 * time + (key_v * 10) * key_cuu * time; player.pan += (key_cul-key_cur)*8 *time; move_mode=IGNORE_PASSABLE+ GLIDE; ent_move(move_vec,vector(0,0,0));
The player moves when you press the UP and Down key. If you press Up and V together it runs. I hope the problem comes from these codes and not from anything else...
I think to solve this problem I should use a kind of trick.
I don't care!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|