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] is PHY Set Controller Displacement ID, X#, Y#, Z# working ?

Author
Message
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 29th Aug 2006 12:45
Did someone managed to alter Character X#, Y#, Z# position using this command ?
I made some tried but this command seem to do nothing

All we have to decide is what to do with the time that is given to us.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 29th Aug 2006 14:21
I'm not sure about this, but if this command is anything like its overloaded method, the one with the forward#, backward# params, then you need to call phy move character controller after to make the character controller move, also the value# that you pass into the move function call shouldn't matter.



I know the voices aren't real, but they have good ideas!
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 29th Aug 2006 15:10
I get strange result with this piece of code :



if I use :
LeftMouseClick + LeftKey : the player go up on Y axis (flying apparently)
RightMouseClick+ LeftKey : The player go down on Y axis (flying apparently)
If the player in in the sky and I sopt pressing Left/Right mouse click and left key, it remain in the sky. No gravity apply on it.
if I use displacement with ID+3 params (X#, Y#, Z#) I get no effect(even if I alter X, Y and Z). If I use displacement with ID+1 param, I also get no effecT.

All we have to decide is what to do with the time that is given to us.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 29th Aug 2006 15:59 Edited at: 29th Aug 2006 15:59
This edit to your code makes the character move upwards when the right mouse button is pressed, and applies gravity when its not pressed.



I know the voices aren't real, but they have good ideas!
Freddix
AGK Developer
22
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 29th Aug 2006 16:06
it's not normal to have to apply gravity from ourselves instead of having it handled automatically.

All we have to decide is what to do with the time that is given to us.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 29th Aug 2006 16:44
Yeah some gravity is applied to the character controller I believe, but then again its only two extra lines of code, and it will make it easier to add things like jet-packs etc because you wont have to calculate the forces etc you just apply a displacement.

I know the voices aren't real, but they have good ideas!
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 1st Sep 2006 18:36
I'm exhuming this thread because I'm having trouble implementing DarkA.I into my project using the other version of this command, and like Freddix says this command doesn't seem to do anything, or I'm not using it correctly???

Anyway these are the different methods I have tried.









And all of them do absolutly nothing at all, has anybody else had any better luck? or maybe even Mike could let us in on something

Thanks in advance.

I know the voices aren't real, but they have good ideas!
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 1st Sep 2006 23:22 Edited at: 2nd Sep 2006 01:18
[Removed because of obvious error due to far too much coffee and staring at computer for 18 hours solid ]

I know the voices aren't real, but they have good ideas!

Login to post a reply

Server time is: 2024-11-24 14:48:46
Your offset time is: 2024-11-24 14:48:46