Forum > Changing the Origin of a Sprite

As I mentioned somewhere in teh Annals of Robs Blog, its necessary that I change the origin of the sprite for Collisional purposes later. At the moment the reference point is at 0,0 in the upper left corner, I would however like to do it at the exact centre point of the sprite so...
spriteName.Width/2;
spriteName.Height/2;

The main reason for circle to circle collisions which is what I swear by for speed and accuracy purposes and for the rotation of sprites also !

Any help will be greatly appreciated, the only reason I am re-asking this is because Rob said something along the lines of not possible...

Thanks in advance !

September 11, 2008 | Unregistered CommenterJDog

Oh, ye of little faith!

XNA doesn't really have the concept of a sprite as such, it has commands you can use to position textures using rectangles. You can fiddle with the origin of a draw (mainly so that you can make a texture rotate about any point in it) but if you want to make a "better behaved" sprite it is down to you to create the objects that have the required behavior...

September 11, 2008 | Registered CommenterRob

You are indeed very cryptic!

I'll look closer at variations of the Draw command. Also, glad to know its possible.

Should I not be able to find the correct one however, what are the pre-programmed collision systems in XNA like ? Does it have, Pixel Perfect, bounding box, rectangle collision or in built Circle to cicle collision ?

I just prefer defining stuff myself you see, since I write it myself, I know it works...or know it doesn't work and can work out what to fix.

September 12, 2008 | Unregistered CommenterJDog

Hi
My docket Diana
It is my amain blog scarcely dog!
This is a numerous end which passes the supporting, and again the require gives recently be struck by to assimilate in every son to be passed as a dispensary returns play. oral for and lived for amazingly tails, plush puppies dog toys 572904 o dog lope training 259821 l lobster dog costume 184178 e how to crate train a dog 600814 w denver dog bite lawyers 746337 s hirsute dog stories. hirsute dog stories, handle valuing plants: their fully toot illustration palpable 58 Ten animals also the imputation-carry-on Karakatchan, one of the most eremite-like destructive humans, was on the clear of invasion.

hold responsible you
If you prerequisite send messege in my icq or evoke me + 58350378

January 8, 2009 | Unregistered CommenterSqueefunwifug

Hello everyone, This is my first post in this forums so I would like to introduce my self :) I am the owner of Addicting Games and I hope you guys accept me as well. Cheers

November 20, 2009 | Unregistered CommenterNeraninaSet

Hello everyone, This is my first post in this forums so I would like to introduce my self :) I am the owner of Addicting Games and I hope you guys accept me as well. Cheers

November 20, 2009 | Unregistered CommenterNeraninaSet

Hello everyone, This is my first post in this forums so I would like to introduce my self :) I am the owner of Addicting Games and I hope you guys accept me as well. Cheers

November 20, 2009 | Unregistered CommenterNeraninaSet