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
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 2nd Apr 2008 19:03
Ok, number one:

Can i detect collision for ai objects on .dbo objects?
If so, then how?

Question 2:

My objects wont rotate properly.
I dont think they will rotate at all, i am using dark ai for it.
I use this code for a 3d ai object in a loop:
[CODE]
if ai get entity is moving(150) = 0
ai entity random move 150,400,1500
else
rem DO NOTHING HERE
endif
[/CODE]
I used fix object pivot too.
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 4th Apr 2008 17:24
Am i allowed to bump by now?
Too late
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 5th Apr 2008 19:20
Ok, somebody answer!

Here is my question again:

On my game i have added some AI to a few of my objects.
I set them to move random when they dont move.
I also ai update every step.
When i run the game they move in all directions but they wont rotate to the direction they are moving!

So, how do i fix that?
mouness
16
Years of Service
User Offline
Joined: 21st Mar 2008
Location:
Posted: 5th Apr 2008 22:58
me also the object move wrong direction
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 6th Apr 2008 13:13
The object does'nt move the wrong direction, it just wont rotate
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd Apr 2008 17:21
Fixed it long time ago, just forgot to tell
Anyways, it was not the rotation, it was the rotate speed and the model direction.
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd Apr 2008 20:32
Ok, basically all you need to know to help me is to read this and see if it is correct or wrong:



It doesnt work to move the objects which means there is something wrong, so can someone fix that code?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 30th Apr 2008 08:44
have you tried putting the debug statements in eg print rayhitdis, and seeing if what you were expecting is being returned.

so it would look something like this(may work).


endfunction

now if it works ok but return the wrong number to what you thought would be returned this should show that, plus it will show if the if statement was true.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-05-19 20:31:12
Your offset time is: 2024-05-19 20:31:12