Page 1 of 2

Deus Ex Physics

Posted: Sun Aug 25, 2013 3:12 pm
by AlvinD
Im creating a cage with an NPC inside it, this might be abit beyond what UnrealEd can do but is there anyway that when i run into the cage WITH the NPC in it that it would wobble? Or am i asking too much of the engine?

Re: Deus Ex Physics

Posted: Tue Aug 27, 2013 9:25 pm
by Morpheus
Can't help exactly, but I wondered (have not coded in so long, so not sure) if physics could be scripted, i.e. when you throw an object (or hit it in your case) you could script the object to rotate the way you wanted it to by adjusting its pitch, roll, yaw etc...it wouldn't be realistic but it could be the closest to any sort of real physics you can get for UED 1 engine.

Re: Deus Ex Physics

Posted: Tue Aug 27, 2013 11:58 pm
by AlvinD
That's abit beyond me I'm afraid :) it was worth a shot. Wasn't crucial but would have been nice.

Re: Deus Ex Physics

Posted: Wed Aug 28, 2013 3:04 am
by G-Flex
Morpheus wrote:Can't help exactly, but I wondered (have not coded in so long, so not sure) if physics could be scripted, i.e. when you throw an object (or hit it in your case) you could script the object to rotate the way you wanted it to by adjusting its pitch, roll, yaw etc...it wouldn't be realistic but it could be the closest to any sort of real physics you can get for UED 1 engine.
This sort of thing pretty much already happens in Deus Ex, albeit to a limited degree. Check out HKHangingDecoration or whatever the superclass of the hanging pig, lantern, etc. are.

The real problem here is that actor collision in Deus Ex is purely cylinder-based. You can't have an actor with a hollow spot in the middle for another actor to stand in.

I guess you could do it with movers, maybe, if you're extremely goddamn lucky, but probably not, since they might only be able to work via keyframes.

Re: Deus Ex Physics

Posted: Wed Aug 28, 2013 7:26 am
by bjorn98009_91
Don't know, but if the mover doesn't have any keyframes it can be manipulated into rotating and other shit like that.

Re: Deus Ex Physics

Posted: Fri Aug 30, 2013 4:09 pm
by Hanfling
You could update the Pawns Rotation/Location in the cage's Tick() method.

Re: Deus Ex Physics

Posted: Sat Aug 31, 2013 10:33 am
by AlvinD
That's abit beyond me I'm afraid :shock:

Re: Deus Ex Physics

Posted: Sat Aug 31, 2013 3:45 pm
by FastGamerr
Deus Ex Physics? More like Deus Ex Physnichts (heh)

*cough* +o(

Re: Deus Ex Physics

Posted: Sun Sep 29, 2013 2:37 am
by atrey65789
Some native code could create great new better physics for the game, but Deja told be that it would create problems. I am not sure how.

Re: Deus Ex Physics

Posted: Sun Sep 29, 2013 2:49 am
by bjorn98009_91
If I ever get my hands on the source code I'll be interested to take a look. Although implementing some actual physics would probably be waay out of my league. If I get my hands on the source I'll probably just do bugfixes/implement stuff from the later builds of the UT1 engine.

Re: Deus Ex Physics

Posted: Mon Sep 30, 2013 4:58 pm
by Mikakk
Admittedly its way out of my comfort zone, but maybe?

Classes: Actor, Triggers, Trigger, ShakeTrigger, properties: set collision and ShakeTrigger settings to match your cage size and desired shake-i-ness?

Re: Deus Ex Physics

Posted: Mon Sep 30, 2013 8:33 pm
by AlvinD
I'll certainly give it a go! :)

Re: Deus Ex Physics

Posted: Tue Oct 01, 2013 12:46 am
by G-Flex
Mikakk wrote:Admittedly its way out of my comfort zone, but maybe?

Classes: Actor, Triggers, Trigger, ShakeTrigger, properties: set collision and ShakeTrigger settings to match your cage size and desired shake-i-ness?
Are you just guessing here or what? That's not even close to what ShakeTrigger does... or trigger collision size, for that matter.

Re: Deus Ex Physics

Posted: Tue Oct 01, 2013 1:20 am
by Mikakk
sorry :(

Re: Deus Ex Physics

Posted: Tue Oct 01, 2013 3:23 am
by G-Flex
Sorry about being snippy; I was playing Dungeon Crawl: Stone Soup and my character died due to my own stupidity and I was peeved about it. Yes, that's my excuse, and I'm going to have to live with it.