Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features request Constraint #24

Open
LucaEstiva opened this issue Sep 28, 2013 · 7 comments
Open

Features request Constraint #24

LucaEstiva opened this issue Sep 28, 2013 · 7 comments

Comments

@LucaEstiva
Copy link

Hi Muzerly… I’m Luca and actually i’m working on Away Games Maker:

http://www.awaygamesmaker.altervista.org/

source:
http://79.44.103.235:8086/AwayGamesMaker/

At this time Games Maker are able to insert many kind of objects in to “one scene” . Make these object “physics” and simulate…
But, I have a problem with the Hinge constraint ( I don’t know with the others for now ). If I add one object, I make this object physics, I add a hinge constraint to this object
“ I add a motor to simulate for now because Games Maker use LUA ( script ) for control the scene objects”
And than I move this object “relocate” in to the scene …

         public function get pivotInA():Vector3D
         {
                // CModule.readFloat(pointer + 680);
                return _pivotInA;
         }

// The set properties function does not exist in to your source:

         public function set pivotInA( pivotInA:Vector3D ):void
         {
                _pivotInA = pivotInA;
                var vec1:AWPVector3 = new AWPVector3();
                vec1.sv3d = _pivotInA;
  • pointer + 680 ( offset ??? ) unknow

  • vec1 struct size = unknow

                CModule.writeBytes( pointer + 680, sizeof( vec1 )???, vec1 );
                CModule.free(vec1.pointer);
         }
    

Because Games Maker ( I don’t know if others prog. Or something else need to modify this value ) must be able to constantly manage scene objects…
Can you give me this data  or i need to “analize” the source 

PS: PhysX for linux can be downloaded from the NVidia site and if you navigate to the Games Maker folder, you can find the latest version…

Hi Muzerly and thanks anyway, Luca

awaygamesmaker

@muzerly
Copy link
Member

muzerly commented Sep 28, 2013

to change hinge's pivot and axis you need access m_rbAFrame and m_rbBFrame in btHingeConstraint, currently I'm not add this property in AWPHingeConstraint, I will add it when have time.

@LucaEstiva
Copy link
Author

Thx Li ( i hope this is your name, sorry i'm italian ) i have read this... and ...
http://bulletphysics.org/mediawiki-1.5.8/index.php/Constraints

The Bullet docs are really poor ( for me ) but, anyway i've start creating and simulate simple flipper... for testing purpose...

When simple viedo are ready, let you know...
Thanks again Li, see you ...

@LucaEstiva
Copy link
Author

Hi Li, as i promised... the Pinball game... :)
This is not a video for now, i have some "problem" to solve, but the game, made only with games maker " Away3D and AWAY PHYSICS ;) " works ! The flippers are contrained with hinge constraint, use a motor to simulate the "spring" force and managed by LUA script, one pre filpper ... THX Li !!!! Wath about Soft body ;) ???
awaygamesmaker

@muzerly
Copy link
Member

muzerly commented Oct 4, 2013

Hi, I have added get/set pivot in all constraints, you can update it in dev branch

@LucaEstiva
Copy link
Author

Many, many thanks LI :) !!!

@LucaEstiva
Copy link
Author

Away3D and Awayphysics dev branch "imported and used" in Away Games Maker.... !!! So ....

@LucaEstiva
Copy link
Author

The site:
http://www.awaygamesmaker.altervista.org/

The source ( directly from my PC, apache web server, xampp, so can be slowly... ):
http://79.44.103.235:8086/AwayGamesMaker/

The progress images ( facebook )
https://www.facebook.com/pages/Estiva-Community/248102938603578

Me on facebook:
https://www.facebook.com/luca.filippini.902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants