AWPKinematicCharacterController Error

Software: Away3D 4.x

fxdev, Newbie
Posted: 24 August 2012 06:07 PM   Total Posts: 25

RangeError: Error #1125: Der Index 1181054049 liegt außerhalb des gültigen Bereichs 1182.
at cmodule.AwayPhysics::FSM__ZN12gjkepa2_impl3GJK8EvaluateERKNS_13MinkowskiDiffERK9btVector3/work()
at MethodInfo-4370()
at MethodInfo-4013()
at awayphysics.dynamics::AWPDynamicsWorld/step()
at com.cs.shooter3d.physics::PhysicsController/updatePhysicsWorld()
at com.cs.shooter3d.core::Core/render()

This happens if I add my Character :

var shape : AWPCylinderShape = new AWPCylinderShape(300, 500);
var ghostObject : AWPGhostObject = new AWPGhostObject(shape, core.camera3D);
ghostObject.collisionFlags = AWPCollisionFlags.CF_CHARACTER_OBJECT;

_character = new AWPKinematicCharacterController(ghostObject, 1);

Directly if I rotate my mouse. At the moment I only have this Character and the Terrain as Physic Objects. :(


fxdev, Newbie
Posted: 24 August 2012 06:29 PM   Total Posts: 25   [ # 1 ]

Seems like AWPTerrain width and height are too big. Anyone know how max these value can be?

60000 for both works greater wont work and result in the Exception.


fxdev, Newbie
Posted: 25 August 2012 11:45 AM   Total Posts: 25   [ # 2 ]

Thread can be closed.

This Exception occurs if a AWPKinematicController has ground contact and will be rotated on the X-Axis.

I solved this by not using Camera as ObjectContainer in the Controller. I used a dummy. The rotation on X and Y - Axis lies on camera. Walk direction on Character Contoller.




Away3D Forum

Member Login