bandi94 Posted July 18, 2014 Share Posted July 18, 2014 Maybe some of you already know , that i am developing FatalTerror 's paused / abandoned TheSims game mode. I want to know some opinions. At the begin i was thinking to save the objects into a matrix , each matrix element would be a 1 square meter place on your building place , but now after i am done with the wall placeing i realized that this methode is a bit to work dependent and i am kinda lazy. I would need to wirte i a big table where specify for each object how many 1 square meter squares ( matrix element's ) would need after that this specifications would need to be re calculated based on the object rotation .... a lot of work i have no time to do it ... So i was thinking how good would be to use "GetElementColShape" and "isElementWithinColShape" to detect if the new object will be in collision with an already placed object if it is then i move it 1 square meter further , in this way i could keep the "The Sims 3" object placing methode , and i can block the collision's to ?? Link to comment
MTA Team botder Posted July 18, 2014 MTA Team Share Posted July 18, 2014 For very simple collision detection you could use GetElementBoundingBox Link to comment
bandi94 Posted July 19, 2014 Author Share Posted July 19, 2014 For very simple collision detection you could use GetElementBoundingBox Hmm yes nice idea , i could get for every object the BoundingBox and according to that min/max XY i could calculate on which matrix element's the object is placed , so i can mark that place as occupied. I will make some test and let's see. Link to comment
Bonsai Posted July 19, 2014 Share Posted July 19, 2014 Keep in mind the object has to be streamed in. Link to comment
denny199 Posted July 19, 2014 Share Posted July 19, 2014 Why not make a table of each object which you can buy with all the parameters like the length height etc in x,y,z. And why not change the building system like the original sims, make it that you only have specific amount of thing to build on, like those squares. (pay attention to the building blocks etc, like the yellow squares.)Also, can you say something to me on skype, I forgot your name (just search for Danny ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now