-
Notifications
You must be signed in to change notification settings - Fork 153
Description
Hi, I've noticed that the default collision system in Flixel doesn't support rotation, which I need for my current project. With a bit of digging, I've been redirected towards FlxNapeSprite, which does in fact support rotation with collisions..
Now the problem I'm facing is that I still need to bundle a bunch of sprites together where one sprite acts as the collider for the world to represent a character, basically FlxNestedSprite but with Nape physics.
Also another thing that I've also need is that within that character should exist another collider (weapon) that should overlap with the body of other characters, which I suppose it could be solved with some sort of collision groups.
Now the problem is that FlxNestedSprite inherits from FlxSprite so it's not possible to polymorphically pass a FlxNapeSprite anywhere.
How can this be approached?