Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Dice physics  (Read 9400 times)
0 Members and 1 Guest are viewing this topic.
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #30 - Posted 2008-06-19 23:32:18 »

Adjust the bounce parameter probably. And the Dampner and the mu and the mass and the gravity and the worldCFM and the worldERP and the step size.

Fiddle like crazy.

Dunno about the dice rendering, thats not the physics domain really. I am not sure what that could be. Maybe jumble the order of construction and method calls around a bit.



Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #31 - Posted 2008-06-19 23:34:20 »

Actually the obvious cheaty way is to make sure the y velocity is below a threshold every timestep. A dirty hack but why not?

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline Hangout

Senior Newbie





« Reply #32 - Posted 2008-06-20 09:32:10 »

Ok, the last problem.

I've tried to set the rotation with converting the rotation matrix to a Matrix4f and then to a AxisAngle3f.
This still gives my small values and I multiplied them by a 100.

Now the dice settle on their edge and do not fall flat on the table so that only one side is fully pointing upwards.

Would be great if I could solve this last one too.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline t_larkworthy

Senior Member


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #33 - Posted 2008-06-20 11:02:15 »

Why do you need big values for a rotation? ?The angle will always be between -PI and +PI and the axis is normalized as it should be. I don't understand why you need large values. The method you are refering to is OpenGL stuff. Does the dice settle in the physcis but not the graphics representation?? i.e. the graphics are rotated and don't line up with the collision representation through some kind of rotation. If thats the case create a rotation matrix from a axis angle and then premultiply the rotation matrix by that to get an adjusted rotation matrix.

You havn't really given me much info on the problem.

OK. I actually will be busy for 4 days now so I hope you get your work done. Don't forget to cite JOODE please.

Tom


Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (20 views)
2014-04-15 18:08:23

BurntPizza (16 views)
2014-04-15 03:46:01

UprightPath (29 views)
2014-04-14 17:39:50

UprightPath (14 views)
2014-04-14 17:35:47

Porlus (30 views)
2014-04-14 15:48:38

tom_mai78101 (55 views)
2014-04-10 04:04:31

BurntPizza (112 views)
2014-04-08 23:06:04

tom_mai78101 (212 views)
2014-04-05 13:34:39

trollwarrior1 (181 views)
2014-04-04 12:06:45

CJLetsGame (187 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!