AwayPhysics not run

Software: Away3D 4.x

Xavirobot, Newbie
Posted: 10 August 2014 02:16 PM   Total Posts: 8

I downloaded the latest version of 3d away and the latest version of awayphysics,

I have the flash version cs6

I created a new project to rule out problems.

in the project and added the following libraries


Away3D-core-fp11_4_1_6.swc
AwayPhysics.swc
lib_simplegui.swc
tweener.swc
MinimalComps_0_9_9.swc

and I used the example of the class BaseTest.as

The result is as follows:

Version: v1.0 alpha AwayPhysics (04/09/2013)
[object Exit]
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F_exit()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F_abort()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F__ZN9__gnu_cxx27__verbose_terminate_handlerEv()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F__ZN10__cxxabiv111__terminateEPFvvE()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F___cxa_call_terminate()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F___gxx_personality_sj0()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F__Unwind_RaiseException_Phase2()
at Global / AWPC_Run :: F__Unwind_SjLj_Resume ()
at Global / AWPC_Run :: createDiscreteDynamicsWorldWithDbvtInC ()
at awayphysics.dynamics :: AWPDynamicsWorld / initWithDbvtBroadphase ()
at BasicTest / init ()
BasicTest at ()

because it occurs?


Another thing I wanted to comment on the core awayphysics download from github, the following classes

import AWPC_Run.addCompoundChildInC ;
import AWPC_Run.createCompoundShapeInC;
import AWPC_Run.removeCompoundChildInC;
import AWPC_Run.setShapeScalingInC;
import AWPC_Run.disposeCollisionShapeInC;
import AWPC_Run.CModule;

the package AWPC_Run not exist in the discharge

ARE NOT give an error and therefore must be added AwayPhysics.swc necessarily mandatory, but I do not want to use the swc want to have open directories to fix any errors if any

In the core discharge Away3D same ocurreo Also, examples using classes that do not exist only in the downloaded core swc.

   

John Brookes, Moderator
Posted: 10 August 2014 05:46 PM   Total Posts: 732   [ # 1 ]

You need to also add the away Physics src folder

 

   

Xavirobot, Newbie
Posted: 12 August 2014 10:18 AM   Total Posts: 8   [ # 2 ]

I have already built the route rsc

C: \ Users \ theuser \ Desktop \ awayphysics-examples-FP11-master \ src \ AwayPhysics \ src

and the result is the same, I get the same error.

version: AwayPhysics v1.0 alpha (4-9-2013)
[object Exit]
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F_exit()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F_abort()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F__ZN9__gnu_cxx27__verbose_terminate_handlerEv()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F__ZN10__cxxabiv111__terminateEPFvvE()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F___cxa_call_terminate()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F___gxx_personality_sj0()
at global/AWPC_Run_2F_var_2F_folders_2F_j6_2F_n3_wkjdd11nc7fd6p13z371w0000gn_2F_T_2F__2F_ccpUpi1o_2E_lto_2E_bc_3A_4BCEEAEF_2D_400A_2D_4EC0_2D_9C22_2D_5FB023C73DF7::F__Unwind_RaiseException_Phase2()
at global/AWPC_Run::F__Unwind_SjLj_Resume()
at global/AWPC_Run::createDiscreteDynamicsWorldWithDbvtInC()
at awayphysics.dynamics::AWPDynamicsWorld/initWithDbvtBroadphase()
at BasicTest/init()
at BasicTest()

 

   

Xavirobot, Newbie
Posted: 12 August 2014 12:53 PM   Total Posts: 8   [ # 3 ]

I have also tried to implement a project in flashdevelop awayphysics and does not work, do not see a AWPC_Run package within src folder

these are the errors that gives the test BasicTest.as

C:\Users\USER\Desktop\flashdevelopTest\src\awayphysics\collision\shapes\AWPCollisionShape.as(41): col: 5 Error: Call to a possibly undefined method setShapeScalingInC.

C:\Users\USER\Desktop\flashdevelopTest\src\awayphysics\collision\shapes\AWPCollisionShape.as(42): col: 5 Error: Access of undefined property CModule.

C:\Users\USER\Desktop\flashdevelopTest\src\awayphysics\collision\shapes\AWPCollisionShape.as(65): col: 5 Error: Call to a possibly undefined method disposeCollisionShapeInC.

C:\Users\USER\Desktop\flashdevelopTest\src\awayphysics\collision\shapes\AWPCollisionShape.as(41): col: 5 Error: Call to a possibly undefined method setShapeScalingInC.
Loading configuration file C:\Users\USER\Desktop\flashdevelopTest\obj\FlashdevelopTestConfig.xml
  setShapeScalingInC(pointer, vec.pointer);
  ^
C:\Users\USER\Desktop\flashdevelopTest\src\awayphysics\collision\shapes\AWPCollisionShape.as(42): col: 5 Error: Access of undefined property CModule.
  CModule.free(vec.pointer);
  ^
C:\Users\USER\Desktop\flashdevelopTest\src\awayphysics\collision\shapes\AWPCollisionShape.as(65): col: 5 Error: Call to a possibly undefined method disposeCollisionShapeInC.
  disposeCollisionShapeInC(pointer);


import AWPC_Run.addCompoundChildInC ;
import AWPC_Run.createCompoundShapeInC;
import AWPC_Run.removeCompoundChildInC;
import AWPC_Run.setShapeScalingInC;
import AWPC_Run.disposeCollisionShapeInC;
import AWPC_Run.CModule;

the package AWPC_Run not exist in the discharge

 

   

John Brookes, Moderator
Posted: 12 August 2014 02:36 PM   Total Posts: 732   [ # 4 ]

Again you have not got your setup right.
That error is from not having the swc setup.

In Flash Develop you would right click the AwayPhysics.swc and select “Add to library”


AwayPhysics works. I use it daily.

 

   

Xavirobot, Newbie
Posted: 12 August 2014 07:21 PM   Total Posts: 8   [ # 5 ]

It works if I add the library, but I do not want to use the swc library.

I want to use awayphysics package but can not because it does take a class if you are inside the swc library.

They should release all the swc library classes, not to depend on the swc file


Leaving aside this topic flashdevelop, I still have the same problem even with the flash cs6, because flashdevelop awayphysics works and no flash cs6?

I need to use flash cs6 flashdevelop not.

I would appreciate someone study the problem if this is alive

 

   

Avatar
Fabrice Closier, Administrator
Posted: 13 August 2014 08:49 AM   Total Posts: 1265   [ # 6 ]

“They should release all the swc library classes, not to depend on the swc file”

Well you have to, because the swc isn’t generated from AS3 classes as you seem to beleive.
It is the c Bullet engine compiled with Alchemy (original codename for what is the flasCC crossbridge compiler nowdays). The provided as3 package act as a facade/bridge between your as3 code and this engine.

The c classes are in the repo if you want look/edit/recompile.
More over flasCC
http://labs.adobe.com/technologies/alchemy

“I need to use flash cs6 flashdevelop not.”
you should not work with this app, flash ide is fantastic for quick tests, asset generation and animation. Certainly NOT for coding!

 

   

Xavirobot, Newbie
Posted: 15 August 2014 06:32 PM   Total Posts: 8   [ # 7 ]

Well thanks for an appropriate response,
I now understand that awayphysics is a port from a library written in c, however I do not understand because they have not exported the all necessary classes to not depend on the swc file.

As for what you say that flash cs6 is not appropriate for programming.

because I is what I’m used to, I have over 10 years programming with Flash IDE and it bothers me to have to change the tool with which I feel comfortable.

For me it was a big mistake of adobe flash the split the community in different programs and not added the new flex sdk components in flash IDE.

I think that seeks alternative to physical, if not look find another alternative to away3d, honestly if awayphysics not work in flash IDE gives the feeling of abandonment.

Well anyway thanks for the reply.

 

   

John Brookes, Moderator
Posted: 15 August 2014 08:34 PM   Total Posts: 732   [ # 8 ]

I really cant be bothered. you seem to know more.

physics works in CC CS6 FD Flashbuilder etc etc

Just set up your IDE right.

You need
Away3d src
awayPhysics src
AwayPhics swc

 

Image Attachments
working.jpg
   

randhawp, Newbie
Posted: 19 August 2014 03:09 AM   Total Posts: 1   [ # 9 ]

Hi,
I am using FlexBuilder with Away3d 4.1.6 and all good.
however just added awayphysics.swc from github and I cannot import any awayphysics.* ie the following is not there
// awayphysics classes
  import awayphysics.collision.shapes.AWPBoxShape;
  import awayphysics.dynamics.AWPDynamicsWorld;
  import awayphysics.dynamics.AWPRigidBody;


However I can see
import AWPC_Run.*
Any ideas ? Thanks in advance.

 

 

 

   

Xavirobot, Newbie
Posted: 28 August 2014 04:37 PM   Total Posts: 8   [ # 10 ]

I just installed the version FLASH CC and it works,

for some reason does not work on my flash cs6

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X