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

Dynamic Actor setGlobalPose issue #111

Open
OsirisDeveloper opened this issue Jul 10, 2019 · 0 comments
Open

Dynamic Actor setGlobalPose issue #111

OsirisDeveloper opened this issue Jul 10, 2019 · 0 comments

Comments

@OsirisDeveloper
Copy link

physx

		auto rigidBody = m_pPxActor->is<physx::PxRigidDynamic>();
		rigidBody->setGlobalPose(m_Transform);
		m_Scene->addActor(*m_pPxActor);
		rigidBody->setGlobalPose(m_Transform);

		auto transform2 = rigidBody->getGlobalPose();

		if(fabs(transform2.p.y) > 10.0f)
			transform2 = transform2;

How is that possible that transformation after a set is so strange different?

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

1 participant