I have made two simple objects
Create3DPhysicsWorld(1)
boxThing = CreateObjectBox( 0.2, 0.2, 0.2 )
SetObjectPosition( boxThing, 0.0, 0.5, 0.4 )
Create3DPhysicsDynamicBody( boxThing )
SetObjectShapeBox( boxThing )
SetObject3DPhysicsCanSleep( boxThing, 0 )
SetObjectCollisionMode(boxThing,0)
crudePositionHackSphere = CreateObjectSphere( 0.053, 16, 16 )
Create3DPhysicsKinematicBody( crudePositionHackSphere )
SetObjectShapeSphere( crudePositionHackSphere )
SetObjectCollisionMode(crudePositionHackSphere,0)
And then I use this code to check if they have contact:
CheckContact = 0
CheckContact = GetObject3DPhysicsFirstContact( crudePositionHackSphere )
if CheckContact > 0
SetObjectColor (crudePositionHackSphere, random(1, 255),random(1, 255),random(1, 255),255)
endif
The contact is detected. However, the objects are coliding, pushing each other apart. Is there a way to detect their contact, without it having a 3D physics reaction?