Search found 28 matches
- Sun Aug 04, 2013 4:18 pm
- Forum: Box2D tutorial discussion
- Topic: Hover craft tutorial
- Replies: 7
- Views: 34131
Re: Hover craft tutorial
Wow that was easier then I thought it would be, I don't fully understand the ins and outs, but I got it working. For those interested what I did to fix was as iForce said, use the the normal from the raycast, I then created a method based on http://www.iforce2d.net/b2dtut/top-down-car b2Vec2 getLate...
- Sun Aug 04, 2013 1:03 pm
- Forum: Box2D tutorial discussion
- Topic: Hover craft tutorial
- Replies: 7
- Views: 34131
Re: Hover craft tutorial
ah, I see. That only works in the example because the ground is always assumed to be straight downwards. I guess you would have to use the velocity relative to the current ground normal. Any tips on doing that, I have some brute force ideas, but a nice elegant solution would be nice, to keeps thing...
- Sun Aug 04, 2013 12:13 pm
- Forum: Box2D tutorial discussion
- Topic: Hover craft tutorial
- Replies: 7
- Views: 34131
Re: Hover craft tutorial
Further investigation shows the linear velocity y actually increases as it goes up the slope which makes complete sense, which it turn is throwing of the distance calculated via this line off. distanceAboveGround += 0.25f * m_hovercarBody->GetLinearVelocity().y; So I'm guessing I need some sort of w...
- Sun Aug 04, 2013 11:46 am
- Forum: Box2D tutorial discussion
- Topic: Hover craft tutorial
- Replies: 7
- Views: 34131
Re: Hover craft tutorial
Ah, that's a good point, the output is the same, I never noticed the issue with the distance when its on a slope, its weird as when I drag it along the ground with the mouse, the distance goes into the minuses even though its not changing. A good starting point would be making sure the distance is m...
- Sun Aug 04, 2013 9:45 am
- Forum: Box2D tutorial discussion
- Topic: Hover craft tutorial
- Replies: 7
- Views: 34131
Hover craft tutorial
Hi iForce, thanks for helping me out over at the hovercraft tutorial, I feel I might be able to make a cool anti gravity game out of it which would be sweet. I just got a couple of hurdles I'm struggling with, I have the ship rotating based on the angle of the body below it,I am using AngularImpulse...
- Thu May 09, 2013 6:16 pm
- Forum: R.U.B.E discussion
- Topic: Create destructible building
- Replies: 1
- Views: 9378
Create destructible building
Hi iForce,
Do you have any advice on how I could create a destructible building in R.U.B.E, Im hoping to make this building tall too
Do you have any advice on how I could create a destructible building in R.U.B.E, Im hoping to make this building tall too
- Tue Apr 09, 2013 8:11 pm
- Forum: R.U.B.E discussion
- Topic: Help Move related bodies
- Replies: 3
- Views: 14890
Re: Help Move related bodies
Yeah related by joints
I am trying the function but the translate function is throwing an error
Line 36, col 25: No matching signatures to 'mv(const uint, const uint)'
Line 36, col 2: No matching signatures to 'translate(body[]&, int)'
Thanks!
I am trying the function but the translate function is throwing an error
Line 36, col 25: No matching signatures to 'mv(const uint, const uint)'
Line 36, col 2: No matching signatures to 'translate(body[]&, int)'
Thanks!
- Sun Apr 07, 2013 12:26 pm
- Forum: R.U.B.E discussion
- Topic: Help Move related bodies
- Replies: 3
- Views: 14890
Help Move related bodies
Hi IForce
I need help moving related bodies, as I have copy and pasted model on top of model, but now need to move each model independently, is there any script which could achieve this?
See attachment for further clarity
I need help moving related bodies, as I have copy and pasted model on top of model, but now need to move each model independently, is there any script which could achieve this?
See attachment for further clarity
- Mon Mar 04, 2013 10:59 pm
- Forum: R.U.B.E discussion
- Topic: Textures in fixture and ignore collisions
- Replies: 4
- Views: 18600
Re: Textures in fixture and ignore collisions
Try setting the fixtures filter group index to -1
- Fri Feb 08, 2013 8:11 pm
- Forum: Box2D tutorial discussion
- Topic: Help stablise ragdoll
- Replies: 4
- Views: 20893
Re: Help stablise ragdoll
Yeah I'll see if I can get any info on improving it through ai, I'd like tosee the boxing game complete too, look pretty fun.
intrusion 2 is a great example of what I'd love to achieve, but its way beyond my current knowledge, I'll keep trying though!
intrusion 2 is a great example of what I'd love to achieve, but its way beyond my current knowledge, I'll keep trying though!