About Store Forum Documentation Contact



Post Reply 
Actor collision detection
Author Message
andrake Offline
Member

Post: #1
Actor collision detection
Hi
is there possible to detect with what actor was collision?
i use
Code:
arm.cuts(group)
it return to me bool
but i do not know with what actor was intersection only its group.
but i have 10 actors for every character, it will be not enought groups.
i want to use user data for it, but i don't have actor
04-24-2014 05:58 PM
Find all posts by this user Quote this message in a reply
andrake Offline
Member

Post: #2
RE: Actor collision detection
ok guys i found solution in Project FPS Source(in Store area)
its really was hard ti understood without tutorial. now i understood that i can use just arm.sweep instead this. sweep has hit.user and hit.obj already implemented. as i understood it's te same call back but alredy implemented.

but there is still one problem: when i start game i get one collision detection beetwin shapes. and i can't understood it's a bug or i just create players at the same places and their shapes intersects before i move player to other points
04-27-2014 03:50 AM
Find all posts by this user Quote this message in a reply
andrake Offline
Member

Post: #3
RE: Actor collision detection
i think..i found ..it was not a bug. i think

there was code:
[code]
cskel.updateMatrix(mtrx);
detectShapesIntersection();
[\code]
all shapes was created in the same places and intersects.
because character with shapes moved to another place in next frame and detect intersections was in current frame.
and i get one warong intersection at start game.

now i just update matrix in init() cycle
04-27-2014 05:25 AM
Find all posts by this user Quote this message in a reply
Post Reply