Replies: 4 comments 2 replies
|
I try this but allways get sensorEvents.beginCount = 0 Sensor events are available after every call to b3World_Step(). Sensor events are the best way to get information about sensor overlaps. There are events for when a shape begins to overlap with a sensor. b3SensorEvents sensorEvents = b3World_GetSensorEvents(myWorldId); I try b3ContactEvents ContEvnt = b3World_GetContactEvents(myWorldId); I get always ContEvnt.beginCount = 0; |
|
I try this but my callback function not calling. Friction and Restitution Callbacks float MyFrictionCallback(float frictionA, uint64_t userMaterialIdA, } b3WorldDef worldDef = b3DefaultWorldDef(); |
|
Not clear understood this. b3Vec3 queryPoint = {0.0f, 8.0f, 1.0f}; b3Transform shapeTransform = b3Transform_identity; I try this code for dynamic boxhull. But not get true from b3OverlapHull Proxy point what is this ? Proxy point move or not ? This all very strange. And i not see in samples example b3OverlapHull. How i understood b3OverlapHull for b3CreateHull(points, 16, 16); |
|
There are many samples that show how to use events in sample_events.cpp. Look at the PersistentContact sample. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I created two Hull boxes. Like as in [docs
/hello.md](https://github.com/erincatto/box3d/blob/main/docs/hello.md)
Static ground hull box as World ground size (8000,2,8000)
And dynamic hull box size(2,2,2) this box fall down to groundBox.
I run test and see two boxes collided.
But how set my function callback for collided ?
CallBack set in b3WorldDef or in b3BodyDef ?
Two situations for CallBack ,when dynamic hull box collided with groundBox, and when dynamic hull box stop moving.
b3BodyDef or b3ShapeDef did have bool flags ? When stopping or set static, or hit any body ?
All reactions