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 / [DarkPhysics] - Odd Collisions

Author
Message
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 2nd Jun 2008 03:58
Hi.
Is the command "Phy Make Rigid Body Dynamic Mesh" going to work in the near future? Is there way to accomplish something similar to this?

Anyway, to the point.


I'm currently working on a physics game where you draw a shape and that shape becomes a dynamic body which will interact with the level.
The goal is to build stuff in order to get a ball inside a rotating swirl. The game will be awesome once finished, but right now that is a very distant reality.

Run this code
for a brief of what I have done. You need DarkPhysics of course.

You will see that it creates boxes from your drawing. Never mind how the shape turns out, I have done things roughly in order to get the basics of the game going, and will improve this later on.

You will notice that the dynamic shapes are not colliding with eachother as well. Why not?

If someone would be kind and have a look at my code, experiment around and hopefully come up with a solution.

Also, I am concidering trying this out with Newton. But as I've bought DarkPhysics I feel I need to put it to use.
Too bad everything I've written with it turns out bad or not working at all.

L.

I allways afraided from a clowns. aww..
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Jun 2008 11:59
magic word 'skin width' when object is made there a border around the object that can be made bigger or smaller than the object.

Dark Physics makes any hot drink go cold.
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 3rd Jun 2008 01:34 Edited at: 3rd Jun 2008 01:59
I don't understand what you mean.

Edit,
Anyway I found the solution: The rigid body does not cover the whole object.
I've also come up with a better way which bypasses this problem and speed things up a bit during the converting of 2d to 3d.

I allways afraided from a clowns. aww..
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Jun 2008 11:53
Lukas W if the not understand was to me,

I was meaning that at the bottom of the refeance manuel on phy there a section on skin width which as you have found out does not cover the whole of the object.

eg:


Dark Physics makes any hot drink go cold.
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 3rd Jun 2008 19:26
Oh, I see! Thanks for the information.

I allways afraided from a clowns. aww..

Login to post a reply

Server time is: 2024-11-24 23:29:34
Your offset time is: 2024-11-24 23:29:34