BulletSim: PhysicsActorType() now returns the correct value rather than 'unknown'.

connector_plugin
Robert Adams 2012-08-31 13:39:29 -07:00
parent 76dc29dc37
commit 189f51233e
2 changed files with 3 additions and 2 deletions

View File

@ -92,6 +92,7 @@ public class BSCharacter : BSPhysObject
_localID = localID;
_avName = avName;
Scene = parent_scene;
_physicsActorType = (int)ActorTypes.Agent;
_position = pos;
_size = size;
_flying = isFlying;

View File

@ -114,6 +114,7 @@ public sealed class BSPrim : BSPhysObject
// m_log.DebugFormat("{0}: BSPrim creation of {1}, id={2}", LogHeader, primName, localID);
_localID = localID;
_avName = primName;
_physicsActorType = (int)ActorTypes.Prim;
_scene = parent_scene;
_position = pos;
_size = size;
@ -444,8 +445,7 @@ public sealed class BSPrim : BSPhysObject
}
public override int PhysicsActorType {
get { return _physicsActorType; }
set { _physicsActorType = value;
}
set { _physicsActorType = value; }
}
public override bool IsPhysical {
get { return _isPhysical; }