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
Fps n00b
14
Years of Service
User Offline
Joined: 24th Apr 2009
Location:
Posted: 17th Sep 2009 03:54
I want my enemy AI to have a body around it so it doesn't walk
through walls etc. but it wont move when I use the common "phy make rigid body static box." what would do the same thing and let me move it?
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 19th Sep 2009 12:56 Edited at: 19th Sep 2009 12:58
Use a character controller for the collision geometry, I haven't used dp for a while but you had to fiddle around with it to get it to work as you'd want, but it can be used with a little hammering and crowbarring.

01100001 01101110 01101111 01110100 01101000 01100101 01110010
01110000 01101111 01101001 01101110 01110100 01101100 01100101 01110011
01110011 01110011 01101001 01100111
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 22nd Sep 2009 17:07 Edited at: 22nd Sep 2009 17:15
Physx 'Static' objects are....static, they don't move, ever.

'Dynamic' objects are moved by Physx calculations, or indirectly by
forces you apply to the object, but not by direct positioning by you.

'Kinematic' objects in DarkPhysics are positioned by you directly but still interact with other DarkPhysics objects.
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 23rd Sep 2009 15:44
IIRC though kinematic objects don't interact with other static geometry or each other, something like that.

01100001 01101110 01101111 01110100 01101000 01100101 01110010
01110000 01101111 01101001 01101110 01110100 01101100 01100101 01110011
01110011 01110011 01101001 01100111
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 25th Sep 2009 14:44 Edited at: 25th Sep 2009 14:47
Kinematic objects DO interact with all DarkPhysics controlled geometry.
The Rigid Body/kinematic demo that comes with DarkPhysics shows this.

DarkPhysics Rigid Body/Kinematic Demo Code:

monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 25th Sep 2009 16:32
I don't have dbp+dp installed so I can't test this but unless kinematic objects have been altered since I used dp then no they DO NOT collide with static geometry.

This is an old link but it proves my admittedly outdated knowledge was (and may still be) correct.
http://forum.thegamecreators.com/?m=forum_view&t=87406&b=30

01100001 01101110 01101111 01110100 01101000 01100101 01110010
01110000 01101111 01101001 01101110 01110100 01101100 01100101 01110011
01110011 01110011 01101001 01100111
Duke E
15
Years of Service
User Offline
Joined: 10th Mar 2009
Location:
Posted: 26th Sep 2009 03:31
@BillR

Kinematic do only interact with dynamics. If a Kinematic collides with another Kinematic or Static nothing will happen physics wise, i.e they wont bounce or repel. I suppose that is what you meant anyways .

Login to post a reply

Server time is: 2024-03-29 06:07:12
Your offset time is: 2024-03-29 06:07:12