collision problem

Posted By: Vyse220

collision problem - 09/23/08 19:08

i think that's a stupid question but i haven't found the answere in the manual

I have a model with a hole and the player must move through it, but also with polygon set in wed (i think that it's the function that doesn't create the box but make the model be with his real polygon) the player hit the box and kill hiself
can someone help?
(sorry my bad eng)
Posted By: GamerX

Re: collision problem - 09/23/08 23:49

Why not make it an map entity? That should work but i don't really know because you didn't give much info on what this actually does other than let the player go through it. Could help better if you give some more info
Posted By: Vyse220

Re: collision problem - 09/25/08 19:38


I want that the solid space of the object is the real polygon of the object (the gray) not to be the yellow box tha gamestudio set, cause the player can't move towards it
sorry i can't explane myself better
Posted By: Vyse220

Re: collision problem - 09/27/08 11:49

sorry the up, someone can help me?
Posted By: GamerX

Re: collision problem - 09/27/08 14:06

If you upload the model i can download it and look at it because all the models i have that players go through work.
Posted By: Vyse220

Re: collision problem - 09/27/08 17:30

http://rapidshare.com/files/148876894/stage2.rar.html
here
so it's a model problem oO
Posted By: GamerX

Re: collision problem - 09/27/08 17:57

So is the problem you can't walk through it? Because i can walk through it just fine. Or is the problem that since the polygon is set and i am guessing your player has his collision event set to dieing when he hits the model he dies.

If he cant go through it you can adjust the players hull manually.

If he can go through it but it triggers his collision event every time he hits a side then i don't really know sorry. There would be a couple things you could try like changing the collision type. Say if your using EVENT_IMPACT get rid of it and just use an event and just do a

Code:
case EVENT_BLOCK:

instead of doing both entity and block. I could fool around with your script and try a few things but couldn't promise anything. Never really ran into a problem like this.

Sorry i couldn't be more of help.
Posted By: Vyse220

Re: collision problem - 09/27/08 20:34


This is my debug window, polygon flag is set, but as you can see, the two blue box collide and call the player event.
what i want is that the collision area is set only where really is the model.

Posted By: GamerX

Re: collision problem - 09/28/08 00:50

You can try and save it as a map entity in WED then add it to your level via using add map entity but im not sure if it will work im not at my house to try it right know.
Posted By: Vyse220

Re: collision problem - 09/28/08 09:59

how? but i can't attach action to it if it's a map entity.

you said it it work to you, it doesn't create the big box problem?
Posted By: GamerX

Re: collision problem - 09/28/08 12:37

I don't know if it will work i didn't try it yet but you can attach actions to

map entity's if you load them into your level. In the even that it doesnt work,

would you mind telling me why your character dies on collision because it might

be a matter of just changing what triggers the dieing event. Does the player have

to die every time he hits something?
Posted By: Vyse220

Re: collision problem - 09/28/08 17:23

yep, it's a shooting game, in the player touch the wall he must die.
but he now die when he enter the collision box Y_Y

it doesn't work when i import it in map entity.
You telled me that you have tryed with and work, what flag have you set?
Posted By: GamerX

Re: collision problem - 09/28/08 17:44

NO i didn't get it to work i didn't know he must die when hitting a side, as i see the only option for this i am guessing would be to break it up into multiple pieces and put it back together in WED. There may be other ways but this is all i can propose.
Posted By: Vyse220

Re: collision problem - 09/28/08 17:47

i just cant split up the model in more parts cause every part will create a new box that mustn't be a box.
there must be a way, but also in the manual i can't see nothing
Posted By: GamerX

Re: collision problem - 09/28/08 17:54

yea there must be a way i agree ill keep looking and tell u if i find anything.
Posted By: croman

Re: collision problem - 09/28/08 18:07

@Vyse220 - Are you sure that the polygon flag of that model with holes in wed is checked? It must be checked and it should work just fine. Is some action attached to that model?
Posted By: Vyse220

Re: collision problem - 09/28/08 18:21

Code:
action move_ambsolid(){
	my.ambient = 100;
	my.z = player.z;
	if(vec_dist(me,player) > 100){
		my.passable = off;
		my.POLYGON = ON;
	}
			while(my.x > -10000){
			c_move(me,nullvector,vector(-8*time_step,0,0),ignore_you);
			wait(1);
		}
	ent_remove(me);
}

that's the action
i'm sure that the flag of that model is set, what's the problem?
Posted By: Vyse220

Re: collision problem - 09/30/08 14:34

so that's can be solved?
isn't it strange?
Posted By: Vyse220

Re: collision problem - 10/04/08 11:45

sorry for the triple post, but i want to everyone know that i have solved (sort of)
i've created a map entity and set it to polygon, i've changed the move action of the player, i set ent_move.

the only problem is that when the player move up and the model move down, the player penetrate the map_entity
© 2023 lite-C Forums