29 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
24
views
How to change applied force on contact using Nape?
Using Nape and ActionScript 3, I built a simple Angry Birds game. I want to modify the force applied by a Ball when it touches a Wall. I used a PreListener, but then I don't know what to change on the ...
1
vote
0
answers
66
views
Nape Physics: Collision issue (moving across tiles)
There is a character, when moved across one tile to another sometimes the character either jumps over the meeting point of the tile polygons or becomes completely stuck and can no longer move in the ...
1
vote
0
answers
42
views
How to put to sleep the non-visible part of your map?
I'm creating a level modifying slightly the destructible terrain class from here:
http://napephys.com/samples.html#swf-DestructibleTerrain
Instead of using PerlinNoise to create a random map, I ...
0
votes
1
answer
548
views
How do I convert these Haxe source files to Python?
I am trying to port the Nape physics engine (written in Haxe) to a language not supported by Haxe (Xojo). Now I don't understand Haxe but I am comfortable in Python. I'm trying to convert the mass of ....
1
vote
1
answer
230
views
FlxNapeSprite and collisions
I'm using Nape Physics with the dev version of HaxeFlixel. I have a few FlxNameSprites moving around in my game. Nape's own handling of collision resolution is excellent, but how do I make my own code ...
Piku's user avatar
- 3,636
1
vote
1
answer
238
views
Nape - Keeping the same physics behaviour over different screen sizes
Im wondering how to keep the same physics behaviour over different screen sizes?
For example, i have a wheel fixed on the middle of the stage.
I have a mouse pivot joint that i use to spin the wheel.
...
2
votes
1
answer
453
views
How to move a HaxeFlixel FlxNapeSprite?
I'm trying to use Nape with HaxeFlixel. Sadly, there's almost no documentation on how to use the addons.nape package and I just can't figure out why this code isn't moving the white rectangle (_test). ...
0
votes
0
answers
53
views
Nape bodyList ignores bodies
I have 13 bodies on the nape space (5 static and 8 dynamic),
when i loop through bodylist to remove dynamic bodies, the loop reads only 9 bodies(5 static and 4 dynamic)and ignores the 4 other dynamic
...
1
vote
1
answer
200
views
HaxeFlixel. Nape. DistanceJoint debugging. Drag sprite to area
I have a sprite that I can drag around on screen. I want to be able to drag this sprite into an area (box). As it stands now I can only drop the sprite into the box, but when I drag it directly inn, ...
1
vote
1
answer
87
views
Object not falling
I created a space where there is gravity and two objects:
var napeWorld:Space=new Space(new Vec2(0,500));
var ground:FlxNapeSprite = addBox(320, 480, 640, 20, BodyType.STATIC, FlxColor.BLUE);
var ...
0
votes
1
answer
356
views
[AS3][Nape Physics] How to access associated object of a Nape body in a InteractionListener?
I need help with the physics engine Nape in AS3. I have a class with some rectangles (Nape bodies) as member variables. I have a InteractionListener that reacts when these rectangles interacts with ...
1
vote
1
answer
169
views
Nape physics. How to listen to SLEEP event of the space/world?
How should I set a single callback which would trigger when there is no motion in the Space of Nape, when each body "goes to sleep"?
I couldn't find any proper solution for this, but I guess this is ...
0
votes
1
answer
516
views
Which AS3 physics engine can replay a simulation consistently?
I'm currently using the Nape physics engine for a "Peggle" style game in ActionScript 3.0.
It is very easy to use, and runs smoothly. However, The only difficulty I'm running into with Nape is ...
1
vote
1
answer
125
views
Body and Sprite Positions
When I compile my hero doesn't touch the floor but stops anyways a few pixels above. I figured if I traced both bodies and their respective sprites I'd know which ones aren't coincinding.
trace("Hero:...
-1
votes
1
answer
205
views
How to Use .as Exported File from PhysicsEditor
The question was here for a long time with bounty and no satisfying solution for me. I erased the first post and am posting instead a question that can be answered quickly with a yes or no so I can ...