*
Login | forgot password | register | register with OpenID Click here to register with OpenID
X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

(what is OpenID?)

Forums

45 Posts in 15 Topics by 16 members

Jump to:

General Discussion

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Imaginary Game Engine » Forums » General Discussion » Using PhysX.NET
Page: 1 go to end Reply
Author Topic: Using PhysX.NET 835 views
  • tylerp9p
    tylerp9p's avatar
    Community Member
    1 posts

    Using PhysX.NET

    Hey there, I have been waiting for a .NET wrapper for PhysX (tried a few of my own, but didn't have the time to update it so often).

    I am trying to implement PhysX into Leadwerks Engine (http://leadwerks.com), which isn't really a problem.

    I just seem to encounter a lot of problems with this line of code:

    DoxyBindArray<NxActor> actors;
    if (gScene.getActors() != null)
    actors = gScene.getActors();

    I get some type of MarshalAs error, with the message being "Unabled to marshal type 'return: invalid'"

    Any help appreciated.

  • SeaEagle1
    SeaEagle1's avatar
    Administrator
    16 posts

    Re: Using PhysX.NET

    There seems to be some sort of problem with marshalling arrays of pointers (like NxScene.getActors() returns). I've fixed it in SVN for now by using a single pointer, like this:

     
    DoxyBindArray<NxActor> array = new DoxyBindArray<NxActor>(scene.getActors(), (int)scene.getNbActors());
    NxActor test = array[0];
     

    835 views
go to top Reply

Currently Online:

There is nobody online.

Welcome to our latest member: jfreie