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

Need a little help with BtRigidBody plz #19

Closed
Sondro opened this issue Mar 5, 2018 · 2 comments
Closed

Need a little help with BtRigidBody plz #19

Sondro opened this issue Mar 5, 2018 · 2 comments

Comments

@Sondro
Copy link

Sondro commented Mar 5, 2018

Trying to get this to compile on cpp (JS is fine) and need a base var. I don't know what to plug in for the BtStridingMeshInterface.

I get the error: "cannot construct a btStridingMeshInterface, no constructor in IDL" because it's an interface.

Thinking about sticking some kind of tri or collision shape in there but not really sure which.

   public var fallRigidBody:BtRigidBody = BtRigidBody.create(BtRigidBodyConstructionInfo.create
(
	0, 
	BtDefaultMotionState.create(BtTransform.create(), BtTransform.create()), 
	BtBvhTriangleMeshShape.create(BtStridingMeshInterface.create(), false, false), 
	BtVector3.create(0, 0, 0)
));
@luboslenco
Copy link
Member

@Sondro
Copy link
Author

Sondro commented Mar 6, 2018

Hey thanks for the above, I don't know how I missed that.

I'm still getting 'error C2512: 'btRigidBody': no appropriate default constructor available' (which is a repeated problem with other files).

Not quite sure what I'm not seeing, I thought the above construction would fix that.

I'll make another issue for that (I think that's the proper way to do it).

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