Search found 4 matches

by saeid
Sat Mar 26, 2011 10:28 pm
Forum: Beginners Help
Topic: Basic Mouse Movement
Replies: 15
Views: 1980

to rotate your camera around an object you must first create a vector like this:
direction = camera->position - object->position
then rotate this vector(direction) using your deltaX and deltaY and at last calculate your camera position :
newCameraPos = object->position + direction
by saeid
Thu Mar 24, 2011 11:07 pm
Forum: Advanced Help
Topic: managing collisions for a third person shooter game. help!
Replies: 6
Views: 1165

hmm...
i think you are right about the format thing...
but still i dont know how to find the size of the bb im going to attach to my meshnode.
by saeid
Thu Mar 24, 2011 10:45 pm
Forum: Advanced Help
Topic: managing collisions for a third person shooter game. help!
Replies: 6
Views: 1165

yes that would work but how can i assign a hit box to a part of my mesh(they are in .x format)?
if my mesh was made of some seperated parts ,using bones was good but in my case this is not posible .
by saeid
Thu Mar 24, 2011 10:19 pm
Forum: Advanced Help
Topic: managing collisions for a third person shooter game. help!
Replies: 6
Views: 1165

managing collisions for a third person shooter game. help!

hi every one.
i am working on a third person game and i have problems with collision detection.
code is a bit of complex so i make it simple.
we have a bunch of animatedmeshes in the scene and we want to detect whether they are collided or not.
my solution was to check their boundig spheres first ...