remove that odd triangle in the origin of samurai castle (VR)
add rolling/spinning friction to cube, remove it from plane/samurai.urdf URDF2Bullet: support joint limits for revolute and prismatic, only if defined (if upper < lower, disable limit) add some profiling markers to improve performance
This commit is contained in:
@@ -893,6 +893,8 @@ extern double gSubStep;
|
||||
|
||||
void PhysicsServerExample::renderScene()
|
||||
{
|
||||
B3_PROFILE("PhysicsServerExample::RenderScene");
|
||||
|
||||
///debug rendering
|
||||
//m_args[0].m_cs->lock();
|
||||
|
||||
@@ -934,6 +936,7 @@ void PhysicsServerExample::renderScene()
|
||||
if (gDebugRenderToggle)
|
||||
if (m_guiHelper->getAppInterface()->m_renderer->getActiveCamera()->isVRCamera())
|
||||
{
|
||||
B3_PROFILE("Draw Debug HUD");
|
||||
//some little experiment to add text/HUD to a VR camera (HTC Vive/Oculus Rift)
|
||||
|
||||
static int frameCount=0;
|
||||
@@ -1157,13 +1160,13 @@ void PhysicsServerExample::vrControllerButtonCallback(int controllerId, int butt
|
||||
extern btVector3 gVRGripperPos;
|
||||
extern btQuaternion gVRGripperOrn;
|
||||
extern btScalar gVRGripperAnalog;
|
||||
|
||||
extern bool gEnableRealTimeSimVR;
|
||||
|
||||
|
||||
void PhysicsServerExample::vrControllerMoveCallback(int controllerId, float pos[4], float orn[4], float analogAxis)
|
||||
{
|
||||
|
||||
|
||||
gEnableRealTimeSimVR = true;
|
||||
|
||||
if (controllerId <= 0 || controllerId >= MAX_VR_CONTROLLERS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user