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, The_Judge, Grant), 898 guests, and 5 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
Strange collision point #173111
12/16/07 20:42
12/16/07 20:42
Joined: Dec 2007
Posts: 1
W
Walank Offline OP
Guest
Walank  Offline OP
Guest
W

Joined: Dec 2007
Posts: 1
Hello,
i have a strange thing with collisions.
This is my code:

In main():
eBall.emask |= (ENABLE_BLOCK | ENABLE_ENTITY);
eBall.event = kontaktas;

in function kontaktas():
switch (event_type)
{
case EVENT_BLOCK:
vec_to_angle(my.pan,bounce);
return;
case EVENT_ENTITY:
vec_to_angle(my.pan,bounce);
return;
}

It should collide with the world and entities in it and bounce against them. It works, but the collision point is very far from the entity :


What can I do to make them collide exacly where they should?
(The earth entity comes from the top)
Thanks.

Re: Strange collision point [Re: Walank] #173112
12/19/07 05:47
12/19/07 05:47
Joined: Aug 2006
Posts: 128
Papua New Guinea
I
Impaler Offline
Member
Impaler  Offline
Member
I

Joined: Aug 2006
Posts: 128
Papua New Guinea
Either the model's bounding box is way too big or the model's origin is outside the shape of the model. Or the model it's colliding with has the same problem, I can't really tell from the shot. Press F11 and see the bounding boxes of the entities, that might solve your problem.


Murphey's Law:
<< if anything can go wrong, it will >>

(Murphey was an optimist).
Re: Strange collision point [Re: Impaler] #173113
12/22/07 13:46
12/22/07 13:46
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
set flag POLYGON or call c_setminmax(my);


Moderated by  HeelX, Spirit 

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