See also pybullet quickstart guide here: https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit#
vrevent.py: add a Tiltbrush-style drawing example using pybullet Expose getVREvents to pybullet / shared memory API, access to any VR controller state & state changes. Improve performance of user debug lines (pybullet/shared memory API) by batching lines with same color/width expose rayTest to pybullet/shared memory API (single ray for now) add pybullet getMatrixFromQuaterion
This commit is contained in:
@@ -174,6 +174,18 @@ enum EnumRequestContactDataUpdateFlags
|
||||
CMD_REQUEST_CONTACT_POINT_HAS_LINK_INDEX_B_FILTER = 8,
|
||||
};
|
||||
|
||||
struct RequestRaycastIntersections
|
||||
{
|
||||
double m_rayFromPosition[3];
|
||||
double m_rayToPosition[3];
|
||||
};
|
||||
|
||||
struct SendRaycastHits
|
||||
{
|
||||
int m_numRaycastHits;
|
||||
b3RayHitInfo m_rayHits[MAX_RAY_HITS];
|
||||
};
|
||||
|
||||
struct RequestContactDataArgs
|
||||
{
|
||||
int m_startingContactPointIndex;
|
||||
@@ -615,6 +627,7 @@ struct SharedMemoryCommand
|
||||
struct LoadTextureArgs m_loadTextureArguments;
|
||||
struct CalculateInverseKinematicsArgs m_calculateInverseKinematicsArguments;
|
||||
struct UserDebugDrawArgs m_userDebugDrawArgs;
|
||||
struct RequestRaycastIntersections m_requestRaycastIntersections;
|
||||
struct LoadBunnyArgs m_loadBunnyArguments;
|
||||
};
|
||||
};
|
||||
@@ -638,6 +651,14 @@ struct SendOverlappingObjectsArgs
|
||||
int m_numRemainingOverlappingObjects;
|
||||
};
|
||||
|
||||
struct SendVREvents
|
||||
{
|
||||
int m_numVRControllerEvents;
|
||||
b3VRControllerEvent m_controllerEvents[MAX_VR_CONTROLLERS];
|
||||
};
|
||||
|
||||
|
||||
|
||||
struct SharedMemoryStatus
|
||||
{
|
||||
int m_type;
|
||||
@@ -665,6 +686,8 @@ struct SharedMemoryStatus
|
||||
struct SendVisualShapeDataArgs m_sendVisualShapeArgs;
|
||||
struct UserDebugDrawResultArgs m_userDebugDrawArgs;
|
||||
struct UserConstraintResultArgs m_userConstraintResultArgs;
|
||||
struct SendVREvents m_sendVREvents;
|
||||
struct SendRaycastHits m_raycastHits;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user