This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
496
Function Peer Review / Re: move_contact functions optimised for bbox
« on: January 02, 2011, 09:06:15 pm »
I know the point is to make it more efficient, but without doing an "inefficient loop" it's not exact going to be doing it's job.
497
Function Peer Review / Re: move_contact functions optimised for bbox
« on: January 02, 2011, 08:54:34 pm »
I think you wanted this:
But after actually reading the code for the first time I have a number of issues with this method anyway.
1. You can collide into an object from a position where neither this (top1 < bottom2 && bottom1 > top2) or (left1 < right2 && right1 > left2) is satisfied.
2. The max_x, max_y variables are not actually set to the correct values for moving to the position where the collision occurs.
3. You can 'skip' right through objects if the distance is set large enough, which is contrary to what move_contact should do.
4. It doesn't allow for precise collision checks only bbox checks.
Although this method is often faster, I don't think it is exactly correct to use. I would suggest writing a more precise method using place_meeting.
Code: [Select]
if (top1 < bottom2 && bottom1 > top2)
{
if (max_x > EPSILON)
{
if (moving_right1 > left2)
{
max_x = left2 - moving_right1;
moving_left1 = left1 + max_x;
moving_right1 = right1 + max_x;
}
}
else if (max_x < -EPSILON)
{
if (moving_left1 < right2)
{
max_x = right2 - moving_left1;
moving_left1 = left1 + max_x;
moving_right1 = right1 + max_x;
}
}
}
if (left1 < right2 && right1 > left2)
{
if (max_y > EPSILON)
{
if (moving_bottom1 > top2)
{
max_y = top2 - moving_bottom1;
moving_top1 = top1 + max_y;
moving_bottom1 = bottom1 + max_y;
}
}
else if (max_y < -EPSILON)
{
if (moving_top1 < bottom2)
{
max_y = bottom2 - moving_top1;
moving_top1 = top1 + max_y;
moving_bottom1 = bottom1 + max_y;
}
}
}
But after actually reading the code for the first time I have a number of issues with this method anyway.
1. You can collide into an object from a position where neither this (top1 < bottom2 && bottom1 > top2) or (left1 < right2 && right1 > left2) is satisfied.
2. The max_x, max_y variables are not actually set to the correct values for moving to the position where the collision occurs.
3. You can 'skip' right through objects if the distance is set large enough, which is contrary to what move_contact should do.
4. It doesn't allow for precise collision checks only bbox checks.
Although this method is often faster, I don't think it is exactly correct to use. I would suggest writing a more precise method using place_meeting.
498
Issues Help Desk / Re: Segfalt with enigma compiler
« on: December 30, 2010, 09:39:19 am »
I was thinking of something a little more extensive than that, like Word's spelling/grammar syntax tool. But it doesn't matter, I was thinking more long term, I know something like that wouldn't be added any time soon.
499
Issues Help Desk / Re: Segfalt with enigma compiler
« on: December 29, 2010, 03:21:18 pm »@polygone: LGM doesn't perform syntax checking, it delegates that task off to ENIGMA, since that's where the competent parser is.OK. Would the interface not need to be done by LGM though?
500
Issues Help Desk / Re: Segfalt with enigma compiler
« on: December 29, 2010, 10:36:00 am »
Is anything planned with LGM to help resolve things like conflicting variable names? Like a smart syntax debugger tool which will search for syntax errors like this then allow the user to perform actions to resolve it (like renaming the variables).
501
Function Peer Review / Re: distance_to_object
« on: December 27, 2010, 06:46:35 pm »
I still prefer this:
Code: (EDL) [Select]
return (distance == std::numeric_limits<double>::infinity() ? -1 : distance);
502
Function Peer Review / Re: distance_to_object
« on: December 26, 2010, 02:00:05 pm »
OK I'll keep that in mind.
503
Proposals / Re: Introduction / Profile Forum?
« on: December 26, 2010, 01:59:09 pm »
OK. I'll wait and see how it turns out. There is still some part of me that is a little dubious though.
504
Function Peer Review / Re: distance_to_object
« on: December 26, 2010, 01:46:45 pm »
Thought that was probably the case, was just wondering why Retro looped through instead of using the with statement. So thought it might be due to speed.
505
Proposals / Re: Introduction / Profile Forum?
« on: December 26, 2010, 01:05:52 pm »
OK I've thought bout it some more and I think a wiki page will probably be alright. As long as there is somehow a direct link to your own wiki profile page from the forum.
506
Proposals / Re: Introduction / Profile Forum?
« on: December 26, 2010, 10:58:44 am »That's why I implemented our current policy on bullshit. People make up nonsense about what they need to know about a system, and the developer fills it in.How can someone fill in information of someone's programming experience other than the person themselves? How will the person know there is a wiki page about them unless they specifically look?
507
Proposals / Re: Welcome PM
« on: December 26, 2010, 10:54:53 am »
EDIT: Yes the wiki will be fine to link to, but maybe also with a little bit of a short message
508
Proposals / Welcome PM
« on: December 26, 2010, 07:34:30 am »
I can't remember do you get an automatic welcome PM here? If not I think they are a nice and useful feature. I see a lot of forums just waste them saying "welcome to the forum" which most people ignore but I think they can be used rather effectively to give a basic introduction to "getting started with Enigma". It could be used to give a short explanation of what Enigma and the community is, how to start using Enigma and some useful links.
509
Proposals / Re: Introduction / Profile Forum?
« on: December 26, 2010, 07:29:19 am »
Although a wiki page is easier to set-up and has some other benefits I have a feeling it will be less effective and beneficial overall for the general user than a forum would be. It's a lot more natural and common for people to make and respond to forum topics than it is to write up a wiki page.
510
Proposals / Introduction / Profile Forum?
« on: December 25, 2010, 06:57:19 pm »
I think there should be an introductions forum here. But I am thinking of it being for of a 'programming experience profile' rather than for actual introductions.
In their post people would give an overview of their experience with programming: what languages they know, for how long they have been learning those languages, what programming education they have had, their date of birth, what major projects they have worked on outside of Enigma, what their primary goals are regarding the use of Enigma, etc, then a section about themselves at the end.
I think there should be a standardised form that everyone fills in regarding what questions they should answer. Of course a user can opt not to answer one of the questions in this case they could just leave the answer blank. If possible it would be great if their post could then be linked to their main profile page somehow.
The reasons I propose this. Well firstly I think it would just be nice to know some information about people but I think it would also be highly useful also. Especially when it comes to dealing with Q&A topics. A person answering a user's question could view the users profile post (if they have made one) and then gain a perspective on the user's relative experience level. This will the person a much better scope on how they should present their answer to the user, ie what language to present their answer in, what terminology they could use, what detail they would need to go into in explaining their answer etc.
If a forum was made I would suggest discouraging responses such as "welcome to the forum" that you see for a lot of welcome forums but encouraging discussion about the user. It would also be a nice place to thank people and help to increase positivity within the forum, if someone helps someone out for example they might want to post a little something in their profile topic like "This is guy is great, he really helped me out ". A little thing like this gives a lot more sense of reward for people who help than any sort of karma system. It would also give some sort of indication about how helpful a user actually is.
I suggest making a forum for this rather than just having people put information in their profile because I think a lot of people do not bother filling in profiles whereas if there was a forum for introductions people are much more likely to post their information.
In their post people would give an overview of their experience with programming: what languages they know, for how long they have been learning those languages, what programming education they have had, their date of birth, what major projects they have worked on outside of Enigma, what their primary goals are regarding the use of Enigma, etc, then a section about themselves at the end.
I think there should be a standardised form that everyone fills in regarding what questions they should answer. Of course a user can opt not to answer one of the questions in this case they could just leave the answer blank. If possible it would be great if their post could then be linked to their main profile page somehow.
The reasons I propose this. Well firstly I think it would just be nice to know some information about people but I think it would also be highly useful also. Especially when it comes to dealing with Q&A topics. A person answering a user's question could view the users profile post (if they have made one) and then gain a perspective on the user's relative experience level. This will the person a much better scope on how they should present their answer to the user, ie what language to present their answer in, what terminology they could use, what detail they would need to go into in explaining their answer etc.
If a forum was made I would suggest discouraging responses such as "welcome to the forum" that you see for a lot of welcome forums but encouraging discussion about the user. It would also be a nice place to thank people and help to increase positivity within the forum, if someone helps someone out for example they might want to post a little something in their profile topic like "This is guy is great, he really helped me out ". A little thing like this gives a lot more sense of reward for people who help than any sort of karma system. It would also give some sort of indication about how helpful a user actually is.
I suggest making a forum for this rather than just having people put information in their profile because I think a lot of people do not bother filling in profiles whereas if there was a forum for introductions people are much more likely to post their information.