local spriteObj = sprite.newSprite(spriteSet1)
physics.addBody(spriteObj, physicsProps)
Result:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000005c
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 …nscamobile.Corona_Simulator 0x000738d4 b2Vec2::Normalize() + 3206
1 …nscamobile.Corona_Simulator 0x00020543 0x1000 + 128323
… etc …
I couldn’t find any physics sample code that uses the game API sprite library, so maybe this isn’t working yet. I’d assume the sprite would appear as a DisplayObject. [import]uid: 3953 topic_id: 1595 reply_id: 301595[/import]