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 / [Dark Dynamix] ODE Equivalents

Author
Message
The Zombie Killer
13
Years of Service
User Offline
Joined: 27th Mar 2011
Location: Gold Coast, Australia
Posted: 5th Oct 2012 15:49 Edited at: 5th Oct 2012 15:51
Hey guys,
I'm trying to figure out the ODE equivalents of the following commands, I'm unsure as to what they are, or how I'm meant to re-create them in Dynamix:

ode create static triangle mesh physicsuniverseobj
Would this be the following?:
dyn cook triangle mesh physicsuniverseobj,physicsuniverseobj
dyn make triangle mesh physicsuniverseobj,physicsuniverseobj

ode create dynamic box tobj:
The Dynamix equivalent has a density action as well as an object, would it be recreated like this?:
dyn make box tobj,object size z(tobj)

ode set response tobj,2

ode set contact fdir1:
I think this is dyn soft body set friction, but what if it's not a soft body I'm dealing with?

ODE GET BODY ADJUSTMENT X(tobj)
ODE GET BODY ADJUSTMENT Y(tobj)
ODE GET BODY ADJUSTMENT Z(tobj)

ODE COLLISION MESSAGE EXISTS()

ode destroy object:
Is this dyn delete actor or dyn delete soft body?

ode update 0.001
would this be dyn update or dyn simulate 0.001?

ODE COLLISION GET MESSAGE

ODE GET OBJECT A()

ODE GET OBJECT B()

ODE GET OBJECT A VELOCITY X()
ODE GET OBJECT A VELOCITY Y()
ODE GET OBJECT A VELOCITY Z()

ODE GET OBJECT B VELOCITY X()
ODE GET OBJECT B VELOCITY Y()
ODE GET OBJECT B VELOCITY Z()

ODE GET OBJECT A ANGULAR VELOCITY X()
ODE GET OBJECT A ANGULAR VELOCITY Y()
ODE GET OBJECT A ANGULAR VELOCITY Z()

ODE GET OBJECT B ANGULAR VELOCITY X()
ODE GET OBJECT B ANGULAR VELOCITY Y()
ODE GET OBJECT B ANGULAR VELOCITY Z()

ODE GET OBJECT A CONTACT()
ODE GET OBJECT B CONTACT()

ode get body height(tobj)

Sorry if I'm annoying anyone by asking so much :p

-TZK

Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 6th Oct 2012 20:48 Edited at: 6th Oct 2012 20:48
Just swapping out commands in an existing code base is not going to work unless you get to know Dark Dynamix first. I am pretty sure Dark Dynamix can do everything ODE does for FPSC and then some more.

You don't need the soft body commands, the commands for air friction are DYN SET LINEAR DAMPING etc the material friction properties are set with the material commands.

Login to post a reply

Server time is: 2024-04-20 09:03:14
Your offset time is: 2024-04-20 09:03:14