Ticket #3 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

add physics unittests

Reported by: ChristianK Assigned to: clayasaurus
Priority: minor Milestone: 0.2
Component: physics Version: svn
Keywords: Cc:

Description

Test all aspects of physics, including

  • collision signals
  • different restitutions
  • different frictions
  • boxbox, boxcircle and circlecircle collision

Change History

06/19/07 19:00:26 changed by clayasaurus

  • owner changed from ChristianK to clayasaurus.

I can get this one started (unless you already started it). You can check it over once it's done.

06/20/07 02:59:28 changed by ChristianK

I didn't start it yet, so feel free to go ahead.

06/21/07 14:35:21 changed by clayasaurus

Put some GUI XML files in Unittest bin, and physicspg.d code should technically work, but I can't get this physicspg.d to compile!

DMD doesn't allow

this() {

if (var)

super();

}

Commands. Any ideas?

06/21/07 15:31:25 changed by ChristianK

Yes, but what you were trying to do was a bit odd. I changed it around a bit and now it works. Be warry of svn conflicts... ;)

06/21/07 16:46:11 changed by clayasaurus

Thank you.

06/21/07 17:04:36 changed by ChristianK

No problem :)

I recommend making the boundaries a bit thicker (otherwise fast things might pass through sometimes). Also friction of 0.7 and restitution of 0.8 make good defaults. I think you might still be working on it, so I leave the changes to you.

06/21/07 18:42:46 changed by clayasaurus

done.

06/21/07 18:50:29 changed by clayasaurus

I've updated arc + unittestbin just in case you didn't realize.

06/22/07 12:32:06 changed by clayasaurus

Got any ideas to test out /collision signals/ with this? How should I go about testing collision signals? Hrm...

06/26/07 23:39:29 changed by clayasaurus

  • status changed from new to closed.
  • resolution set to fixed.

The asteroids example can be considered a decent enough testing of collision signals with arclib. Going to close this ticket down.