Search found 25 matches

by Nickert
Thu Jan 16, 2014 5:10 pm
Forum: General Bullet Physics Support and Feedback
Topic: applyImpulse works intermittantly
Replies: 4
Views: 4497

Re: applyImpulse works intermittantly

Any reason why activate() isn't called by Bullet when applying forces/impulse?
by Nickert
Thu May 16, 2013 6:05 pm
Forum: General Bullet Physics Support and Feedback
Topic: btBoxShape with different origin
Replies: 2
Views: 3240

btBoxShape with different origin

Hey all!

I have a box that has it's origin in at the lower front left corner, how can I create a btBoxShape that will wrap this? Did I miss some function?

Thanks!
by Nickert
Sat Apr 27, 2013 3:12 pm
Forum: General Bullet Physics Support and Feedback
Topic: Apply rotation force?
Replies: 2
Views: 4876

Re: Apply rotation force?

So I ended up doing this, which works really well. Comments are welcome! float const player_rotation_speed = configuration.get("player_rotation_speed", M_PI*2.0f) * dt; auto const player_rotation = self.get_rotation(); float const player_acceleration = configuration.get("player_accele...
by Nickert
Sat Apr 27, 2013 11:53 am
Forum: General Bullet Physics Support and Feedback
Topic: Apply rotation force?
Replies: 2
Views: 4876

Re: Apply rotation force?

If so, how can I apply a force to rotate every object? I should apply it relative to the center of mass I guess?
by Nickert
Sat Apr 27, 2013 11:27 am
Forum: General Bullet Physics Support and Feedback
Topic: Apply rotation force?
Replies: 2
Views: 4876

Apply rotation force?

Can I apply a rotation only force, or do I have to use applyForce and calculate where and how I have to push it to get it to rotate?
by Nickert
Sun Apr 21, 2013 7:21 pm
Forum: General Bullet Physics Support and Feedback
Topic: CF_NO_CONTACT_RESPONSE
Replies: 0
Views: 2657

CF_NO_CONTACT_RESPONSE

When I set CF_NO_CONTACT_RESPONSE as a flag on a btRigidBody, that's all that's necessary to only detect collisions but not act upon them right? //! The body will come into contact, (so it will register that it hit something) but will not actually bounce back or something, just pass through. Like a ...
by Nickert
Sun Apr 07, 2013 7:43 pm
Forum: General Bullet Physics Support and Feedback
Topic: Objects collide when spawned in eachothers AABB?
Replies: 6
Views: 6534

Re: Objects collide when spawned in eachothers AABB?

The objects don't seem to have any contact points when drawn with the debugdrawer. Interesting. The getNumContacts in the manifold is also 0! But why are the objects even "colliding" then? Because they are about to? Long story short, fixed it by checking the number of contacts in the manif...
by Nickert
Sun Apr 07, 2013 6:59 pm
Forum: General Bullet Physics Support and Feedback
Topic: Objects collide when spawned in eachothers AABB?
Replies: 6
Views: 6534

Re: Objects collide when spawned in eachothers AABB?

checkCollideWith also says the bodies are colliding... but they are not. :evil:
by Nickert
Sun Apr 07, 2013 6:19 pm
Forum: General Bullet Physics Support and Feedback
Topic: Objects collide when spawned in eachothers AABB?
Replies: 6
Views: 6534

Re: Objects collide when spawned in eachothers AABB?

I have made a small testcase (for me small) and it seems like objects are reported as colliding when checking for collisions like this: void Physics::check_collisions(){ std::vector<std::pair<btCollisionObject const*, btCollisionObject const*>> bullet_objects_colliding; int const manifolds = dynamic...
by Nickert
Sun Mar 31, 2013 6:32 pm
Forum: General Bullet Physics Support and Feedback
Topic: Objects collide when spawned in eachothers AABB?
Replies: 6
Views: 6534

Re: btTriangleMesh colliding a bit eagerly

So my question is basically if there's some known issue or how I can debug this. Anyone? :D
by Nickert
Sun Mar 31, 2013 2:43 am
Forum: General Bullet Physics Support and Feedback
Topic: Objects collide when spawned in eachothers AABB?
Replies: 6
Views: 6534

Re: btTriangleMesh colliding a bit eagerly

I encircled the block that will collide with the sphere at the bottom.
by Nickert
Sun Mar 31, 2013 2:42 am
Forum: General Bullet Physics Support and Feedback
Topic: Objects collide when spawned in eachothers AABB?
Replies: 6
Views: 6534

Objects collide when spawned in eachothers AABB?

EDIT2: Objects seem to collide when they spawn in each others's AABB EDIT: Turns out it's not the btTriangleMesh! That's fine. :) It's the tiny object that somehow has a huge hitbox the first frame. See my later posts for information and screenshots. Hey guys, I'm creating a btTriangleMesh like this...
by Nickert
Mon Mar 25, 2013 11:45 pm
Forum: General Bullet Physics Support and Feedback
Topic: Create a swarm around an object
Replies: 6
Views: 5708

Re: Create a swarm around an object

Ah yes thanks! That was what I was looking for. How stupid. Thanks man! :)
by Nickert
Fri Mar 22, 2013 1:30 am
Forum: General Bullet Physics Support and Feedback
Topic: Create a swarm around an object
Replies: 6
Views: 5708

Re: Create a swarm around an object

I'm doing that now, but I can't get the swinging motion to dissapear. Here's some sample code of what I'm doing now. void Planet::update(float const dt, Player& player, motor::Scene& scene, btDynamicsWorld& physics){ for(auto& city : cities){ for(auto& h : city->get_houses()){ if...