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.

Author
Message
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 15th Jan 2009 03:07
Is there possibly a command to put force on an object in dark physics that is simple like;

"move object" that is in regular DBpro?
miki
19
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 15th Jan 2009 08:40
i use this way, but i'm sure there are alternatives



regards,
miki.

in the end
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 15th Jan 2009 14:37 Edited at: 15th Jan 2009 14:49
neat!

but I was thinking something more like this;



I need the physics code enabled however, so I would want my object to be pointed in the correct direction, and then just give it a push, so that the physics engine would take over.

My guess is that I need to turn off the physics engine on that object in order to position and point my object; then re-enable the engine on the object and give it a push? (Taking into account it is now pointing in the right direction)

Which makes me think now that my object will have to not be effected by gravity. (side question) [Is there a way to turn off gravity from affecting a single object?]
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Jan 2009 18:00 Edited at: 15th Jan 2009 18:09
look these commands up and give them ago.



plus check out demo prog in rigid folder named movment.

a note: any move command used to move objects in non physX code will not work in physX code.

Dark Physics makes any hot drink go cold.
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 15th Jan 2009 18:40
I managed to to get an box centered in front of the mouse.
where it is always perpendicular to the corners of the screen.

Before a sync I turn on the physics atributes.
After the sync I turn off the physics attributes and reposition the object with the camera.

(note the gravity is set to 0,0,0)

when I move around the objects do indeed move ok!!!

However now, whenever there is a slight collision my box twists so I don't get a full punching effect.

I've tried to turn off the
phy set rigid body sleep angular velocity,
PHY SET RIGID BODY SLEEP ANGULAR VELOCITY
doesn't seem to work either,

any way to turn of the angular twisting of an object on an impact?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Jan 2009 19:56
ICERGB is there any chance to can describe what you hope to do or a drawing of what you are aiming for.

Please remember that even though your object has no gravity it is still effected by the same forces there would be in space.

Dark Physics makes any hot drink go cold.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Jan 2009 15:29
You should make it a kinematic object, I haven't tried it but you should be able to switch it on and off. By making it kinematic, it will still interact with the physics environment. Otherwise things will pass through it or not get pushed out of the way as you move it manually.

ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 17th Jan 2009 13:18
TKS Batvink! I will try that and let you know how its goin.

Thanks Howdo to I will try to give you some code.
I have like a bunch of code knitted together so I need to cull it.
I noticed that you have been around since I joined!
Awesome.
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 18th Jan 2009 11:04
Yes!

When I set the "pushing" object PHY SET RIGID BODY KINEMATIC to on,
the "pushing" object no longer reacts by twisting when it is hit.

Thanks BatVink!

Login to post a reply

Server time is: 2024-11-24 18:51:45
Your offset time is: 2024-11-24 18:51:45