Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Questions About DarkPhysics.

Author
Message
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 24th Jun 2008 16:38 Edited at: 24th Jun 2008 18:26
I dont own DarkPhysics, but i may make a purchase this friday depending on its ability to do a number of things.

1. Apply physics to a Darkbasic Triangle or to a Mesh
2. Ability to Load a .x object and Apply physics
3. Ability to read Current Speed of an Object

Is DarkPhysics capable of all these, and would there be any "Basic Examples" that you would recommend.

Everyone Be Cool, You, Be Cool.
HowDo
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 24th Jun 2008 17:57
1. not sure.
2. yes.
3. yes.

Dark Physics makes any hot drink go cold.
Kendor
22
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 24th Jun 2008 20:44 Edited at: 24th Jun 2008 20:45
For Questions 1 & 2:

Dark Physics (like any other physics simulation) works by creating a physics object representing the actual object. In Dark physics such representation can take the form of a box, capsule, sphere, convex or mesh. The first three are straight forward, a convex or mesh will create a polygon-perfect representation, with convex applied when your object has no holes or sharp points.

If you absolutely need a polygon-perfect physics representation of your object then, currently, Dark Physics is not your best option.
Putting it simply, the current implementation of dynamic meshes/convex in Dark Physics make them completely unusable, with objects not included in the simulation or the physics object not reflecting its 3D counterpart.

In practice, since convex and meshes are CPU intensive, it is normal practice to represent the 3D object using a combination of boxes/spheres/capsules jointed together.

Regarding the simplicity of use, to include an object into the physics simulation requires just one additional command. Example:




For Question 3:

It will not give the actual speed of the object, but the speed it is moving on each axis. Example, if an object is moving on a plane at 45 degrees, you will not get the speed of the object but the speed on the X and Z axis, and since it is moving at 45 degrees both the X and Z speed will be equal.



Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why.
Programmers combine theory and practice: Nothing works and they don't know why.

Attachments

Login to view attachments
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 26th Jun 2008 01:17
Quote: "1. Apply physics to a Darkbasic Triangle or to a Mesh"

yes it can, you can even save a mesh object as (.x) model, and reload it back into dark physics

here is the code snipit.


but if you do use this code don`t save the physics object with the same name as a loaded object.

soul sucking devils, twisted body of the damed, slivering slim drips from every poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!

Login to post a reply

Server time is: 2025-05-16 14:11:07
Your offset time is: 2025-05-16 14:11:07