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

The player capsule doesn't collide with the chassis. #246

Closed
BenjaminGu opened this issue Aug 9, 2021 · 5 comments
Closed

The player capsule doesn't collide with the chassis. #246

BenjaminGu opened this issue Aug 9, 2021 · 5 comments

Comments

@BenjaminGu
Copy link

image

The player capsule collides with tires.
However, it doesn't collide with the chassis.
Why is this happening?

@BenjaminGu
Copy link
Author

image

And player capsule doesn't collide with a scene created by BuildCompoundScene().

@JulioJerez
Copy link
Contributor

JulioJerez commented Aug 9, 2021 via email

@JulioJerez
Copy link
Contributor

the bug was here

			//if (contact->m_isIntersetionTestOnly)
			if (contactSolver.m_intersectionTestOnly)
			{
				ndBodyTriggerVolume* const trigger = body1->GetAsBodyTriggerVolume();
				if (trigger)
				{
					body1->GetAsBodyTriggerVolume()->OnTriggerExit(body0, m_timestep);
				}
				//contact->m_isIntersetionTestOnly = 0;
				contact->m_isIntersetionTestOnly = 1;
			}

I was testing the flag on the contact joint in order to report collision test on the same joint, when is should test the flag on the contact solver.

ok fixed. please check again
and thanks for the report.

@JulioJerez
Copy link
Contributor

JulioJerez commented Aug 9, 2021

It like that you mixing thing up. I never tried player reacting with the vehicle. :)
I assumed it would work, but it did not.
now I put with player capsule in the basics vehicle so that is can be push around.

I did not test the player pushing the vehicle, because there is not camera handling for that in that demo,
but I think it should works.
anyway this was a good catch, thanks

@BenjaminGu
Copy link
Author

It works. Thank you for your immediate help.

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