 |
trueaxis.com True Axis Physics SDK Forum
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Thu Jun 02, 2005 6:56 am Post subject: Possible Bugs(?) |
|
|
Just a couple of things i've noticed when using TrueAxis. Might be my fault, might not be, either way, i'm hoping somebody can shed some light on this...
(Using TrueAxis 1.0.0.5-Beta)
1) I'm using TA::StaticObject's to represent doors in my game (Because the doors are made in the editor using brushes, (Quake style maps) I require CollisionObjectComplex, which TA::DynamicObject doesn't support (does it?)). Everything works as expect, except when i move the door (open/close, etc). If I use SetFrame on the StaticObject, it appears that the collision info is not updated. Even though the object moves, line traces and dynamic objects still collide with it as if it were still in its original position. If i use SetNextFrame, DynamicObjects react correctly (collide with the door where it appears to be, not where it was originally) but line traces (Physics::TestLineForCollision) still behave as if the door was where it was originally placed.
2) Using Physics::TestLineForCollision, where the line passes through a StaticObject AND a DynamicObject, it appears that it always returns the first DynamicObject as the collision, even if the static object is closer. At the moment i'm working around this by doing another line test, ignoring
dynamic objects and changing the result if required, but clearly this is non-optimal.
-b- |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Jun 04, 2005 8:05 pm Post subject: |
|
|
-Different Guest-
1) Trying to use StaticObject's as Dynamic? This is counter intuitive, I think.. Also, it is well documented that collisions generated from SetFrame and friends won't work. What you should do, is use a DynamicObject to represent your door. This can be very non-trivial, obviously. But, if you're working with Quake-style maps, at least you *know* that any brush it creates is indeed a convex volume. The rest should just be managing the door's trigger/movement. For different types of doors you might want to SetMovementDisabled, or SetRotationDisabled.
I think this is definitely the best option, think of this: You come to a flimsy wooden door that is locked. You don't have the key. You try shooting the lock a few times with your pistol... but dont have much luck. Then you bust out your 12 guage shotgun and plant a shell right in the center of the door. The force breaks the lock, and the door violently swings around the hinge, slamming into the wall on the other side.
Sounds cool to me anyway This stuff would *never* be possible using StaticObjects. |
|
| Back to top |
|
 |
luke Site Admin
Joined: 15 Oct 2004 Posts: 621
|
Posted: Wed Jun 08, 2005 1:18 pm Post subject: |
|
|
1. StaticObjects can be moved with the SetNextFrame function. However, this functionallity is work in progress and should be documented as such. Thanks for pointing out that the line tests don't work with it.
Note that having many different StaticObjects is not currently very optimal.
Better to use dynamic objects for this kind of thing.
2. Thanks for pointing this out. I'll have to look into it. Should be an easy fix if this is true. |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Jun 11, 2005 1:54 pm Post subject: |
|
|
Luke,
Thanks for your reply, and continued development of TrueAxis.
Looking forward to the next version.
-b- |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|