I'm trying to create two sprites with Physics, one static and the other dynamic... I want the dynamic sprite to be able to pass through the static sprite? Is this possible? I have tried SetSpriteGroup, but believe this is only used for collision detection and not actually physics?
SetVirtualResolution(480, 320)
//SetPhysicsDebugOn()
SetPhysicsGravity(0, 300)
global Box
global Platform
Box = CreateSprite(Box)
SetSpriteSize(Box, 32, 32)
SetSpritePosition(Box, 200, 320 - GetSpriteHeight(Box))
SetSpritePhysicsOn(Box, 2)
SetSpriteGroup(Box, 1)
Platform = CreateSprite(Platform)
SetSpriteSize(Platform, 96, 32)
SetSpritePosition(Platform, 170, 170)
SetSpritePhysicsOn(Platform, 1)
SetSpriteGroup(Platform, 2)
do
if GetRawKeyPressed(27) = 1 // ESC Key
SetSpritePhysicsVelocity(Box, 0, -300)
endif
Sync()
loop
EDIT: Added code snippet...