Search found 24 matches

by Furya
Fri Feb 15, 2019 1:54 am
Forum: General Bullet Physics Support and Feedback
Topic: rotate a crate around me when i Turn
Replies: 4
Views: 4195

Re: rotate a crate around me when i Turn

Just a question

How did you get characterToWorld ? It is worldToCharacter.inverse() ?

++
by Furya
Mon Feb 11, 2019 10:18 am
Forum: General Bullet Physics Support and Feedback
Topic: rotate a crate around me when i Turn
Replies: 4
Views: 4195

Re: rotate a crate around me when i Turn

hi,

thank for your help.

Unfortunately it doesn't work. Just with the first part, my crate is projected far far away...


++
by Furya
Sun Feb 10, 2019 9:28 am
Forum: General Bullet Physics Support and Feedback
Topic: rotate a crate around me when i Turn
Replies: 4
Views: 4195

rotate a crate around me when i Turn

Hi, I make an adventure game like tomb raider with bullet and Ogre 3d. And I have a problem to displace crates or boxes. I use a btGeneric6DofConstraint in order to push/pull some crates with my character. It works, the crate move with my hero. But i want also that when my hero turn around himself i...
by Furya
Fri Aug 25, 2017 3:51 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: character who react only with gravity
Replies: 1
Views: 35334

character who react only with gravity

Hi, I have a character and I want that he react to gravity (so there is Collision AND Physics activated on him. That's OK) but I don't want that he moved when an objet or another character touch him. So I want collision on him, so the other entity couldn't pass throught him (that's OK). I Want the r...
by Furya
Wed Aug 09, 2017 9:42 pm
Forum: General Bullet Physics Support and Feedback
Topic: I want to know if i'm picking front face or back face
Replies: 4
Views: 5793

Re: I want to know if i'm picking front face or back face

Ok thanks i will do that..

And do you have an idea about my second question ?

if I have severeal subEntities or SubMesh how can I know wich subEntities or SubMesh i am picking ?
by Furya
Mon Aug 07, 2017 10:16 am
Forum: General Bullet Physics Support and Feedback
Topic: I want to know if i'm picking front face or back face
Replies: 4
Views: 5793

I want to know if i'm picking front face or back face

Hi,

I use Bullet for picking and Ogre3d for rendering. I have 2 Questions:

1) If I have a double-sided plane and if I pick it I want to know if I pick front face or back face. It is possible to do that ?
2) How can I know wich subEntities or SubMesh i am picking ?

thx

++
by Furya
Mon Jul 31, 2017 9:59 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: what is the unit of measure of setWalkDirection() ?
Replies: 2
Views: 41210

what is the unit of measure of setWalkDirection() ?

Hi, My question is simple what is the unit of measure of function setWalkDirection() of btKinematicCharacterController ? (meters, centimeters, inch, Foot,...) ? I'm french so I want to work with meters For exemple If I want to move forward to 5 meters what I have to put like paramaters ?? Thanks ++
by Furya
Sat May 07, 2016 8:16 pm
Forum: General Bullet Physics Support and Feedback
Topic: Test if a character is moving
Replies: 7
Views: 6868

Re: Test if a character is moving

it doesn't work
by Furya
Thu Apr 28, 2016 11:40 am
Forum: General Bullet Physics Support and Feedback
Topic: Test if a character is moving
Replies: 7
Views: 6868

Test if a character is moving

Hi

I'm wondering how to test if a CharacterController is moving.

thanks
by Furya
Sun Apr 03, 2016 5:37 pm
Forum: General Bullet Physics Support and Feedback
Topic: To know when Character is sliding a slope
Replies: 0
Views: 3866

To know when Character is sliding a slope

Hi

I'm wondering how to know when a CharacterController is sliding a slope of a terrain and how to calculate the distance of sliding/falling.

thanks
by Furya
Fri Apr 01, 2016 7:20 am
Forum: General Bullet Physics Support and Feedback
Topic: How to know if my Character go up or go down a slope ?
Replies: 5
Views: 6685

Re: How to know if my Character go up or go down a slope ?

I found a solution.

Code: Select all

Ogre::Vector3 dir = PJ->mNode->getOrientation() * Vector3::UNIT_Z;
			Ogre::Radian q = Ogre::Vector3(dir).angleBetween(Ogre::Vector3(point.m_normalWorldOnB));
         
			Ogre::Real rotation =q.valueDegrees()-90 ;
by Furya
Mon Mar 28, 2016 8:05 am
Forum: General Bullet Physics Support and Feedback
Topic: How to know if my Character go up or go down a slope ?
Replies: 5
Views: 6685

Re: How to know if my Character go up or go down a slope ?

I tried

Code: Select all

Ogre::Quaternion q = Ogre::Vector3(point.m_positionWorldOnA).getRotationTo(Ogre::Vector3(point.m_normalWorldOnB));
			
float rotation =q.y ;
But it doesn't seem to work.