123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|530|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Collision problem...

Thu, 14 Jun 2007, 11:08
iusinbello
Look at the image... the house is "in" the ground, while I want it "on" the ground.


P.s. I can't place the house manually ("PositionEntity etc...")


P.s.1. Pieces of the code I'm using:
[...]
EntityType ground,1
PositionEntity ground,0,0,0
[...]
EntityType house,2
PositionEntity house,0,500,0
[...]
Collisions 2,1,2,2
[...In The Loop...]
MoveEntity house,0,-1,0


-=-=-


Thu, 14 Jun 2007, 14:59
bram32
I think you need to set the EntityRadius of the house. Collisions are allways sphere-to-something. By default, it is one.
It is strange that you can't use PositionEntity on the house? If you can move it using MoveEntity, you should be able to use PositionEntity as well. For placing the house on the ground, you could also use EntityPickmode ground, 2 and LinePick 0, 500, 0, 0, -1000, 0 and then read PickedX/Y/Z.
Sun, 17 Jun 2007, 12:45
iusinbello
thanks for the suggestion (linepick)!
Now it works.
Ah, for the positionentity thing, I mean I don't want to use it

-=-=-