Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
how do you make your object inpassable? #254093
03/01/09 02:55
03/01/09 02:55
Joined: Aug 2007
Posts: 74
Mahdi Offline OP
Junior Member
Mahdi  Offline 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,209
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,209
İ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 Offline OP
Junior Member
Mahdi  Offline 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 Offline
Expert
WretchedSid  Offline
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: WretchedSid] #254110
03/01/09 09:58
03/01/09 09:58
Joined: Sep 2008
Posts: 76
Max_Prower Offline
Junior Member
Max_Prower  Offline
Junior Member

Joined: Sep 2008
Posts: 76
As the others said, a bounding box should resolve the issue. If checking it isn't working right then Sylar's suggestion should.

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 Offline
Expert
EvilSOB  Offline
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 Offline OP
Junior Member
Mahdi  Offline 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 Offline
Expert
EvilSOB  Offline
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 Offline OP
Junior Member
Mahdi  Offline 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 Offline OP
Junior Member
Mahdi  Offline 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!
Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1