Chipmunk: how to delete a body?

What's the right way to delete a Chipmunk body? Simply calling cpBodyFree or cpBodyDestroy doesn't seem to work, as the body still shows up in the cpSpaceEachBody iteration. if(body->p.y < -260...

What does this code do: static union MSVC_EVIL_FLOAT_HACK INFINITY_HACK = {{0x00, 0x00, 0x80, 0x7F}};

#ifndef INFINITY #ifdef _MSC_VER union MSVC_EVIL_FLOAT_HACK { unsigned __int8 Bytes[4]; float Value; }; static union MSVC_EVIL_FLOAT_HACK INFINITY_HACK = {{0x00, 0x00, 0x80,...

Collision detection with images on the iPhone using OpenGL

I'm working on a 2D game (kind of like a top down space shooter) for the iPhone using an engine very similar to cocos2d (not exactly though) on OpenGL ES. I'm trying to figure out how I'm going to...

Using Pymunk with Pyinstaller

I have literally found nothing googling that could help. Even for py2exe but I would like to use pyinstaller. My problem is the module (pymunk[aka Chipmunk]) is not fully included in the exe...

Pymunk Segment trouble?

I'm using Pymunk 3.0.0 on a Raspberry Pi running Debian Wheezy 7.0. When I try making a shape using the 'pymunk.Segment' function I end up with only the first line of the polygon. The same...

Cocos2d - json/document.h file not found

I create a mobile game using cocos2d framework. The problem is I got this error when I try to compile ios platform. In file included from...

Cocos2d-js: effect on cocos2d-js application running on browser while a move from one application to another application

i was running parkour game given on cocos2d website on my browser. everything was working fine, but when i move from my browser to sublime text and returned to my browser, the running player start...

Create Dynamic Body using cocos 2d js and Chipmunk

I am fairly new to cocos 2d and chipmunk. So far i have managed to create a static object and add collision handler to it. But i want to create a dynamic. this.space = space; this.sprite = new...

PyMunk does not create window - Python

I am trying to learn PyMunk library and I used the example from their website. Here is a code: import pymunk # Import pymunk.. space = pymunk.Space() # Create a Space which...

http: panic serving 127.0.0.1:48286: EOF

Here is my code (it's a simple web server in golang) : package main import ( "fmt" "net/http" "log" "io" "github.com/gorilla/mux" "encoding/json" "strconv" "io/ioutil" "os" ) var...

how to include Box2d in cocos2d-x project?

In cocos2d-x v3.13.1, if I wanted to use just Box2d (not the integrated chipmunk physics), all I had to do was: #include <Box2d/Box2d.h> But after upgrading to v3.17, it doesn't work. Instead...

Rotating group of bodies in pymunk

I want to make a 2D grasping hand in pymunk, which can rotate, move up/down and to the sides and clench or extend its fingers, basically, the hand looks like 'U' letter. I tried to do it by making...

How to plot discrete characters on phylogenetic tree using phytools?

I am looking to plot type of mating system (monogamous, polygynous and promiscuous) onto a phylogenetic tree built using caper package, ggtree() and a super tree in nexus file format. I have tried...

Units of velocity in Pymunk

I was wondering what the basic units of velocity are in Pymunk. If I put in a velocity of (50,50) does that correspond to 50 pixels/second in each direction? The API says that the units of angular...

can't extraxt RTP Payload from RTP Packet

Hi I wanted to proxy multicast video to unicast like udpxy does: http://www.udpxy.com, but in C# since I could not find any suitable RTP library that I could use (they were eather too complex or I...

Pymunk - setting position at every timepoint and getting no collisions

I am using pymunk to simulate bodies moving. Because I want the bodies to move in a certain way I am setting their positions every time point (I know that this is not recommended for...

SDL + Chipmunk CMake config

I want to link the Chipmunk2D physics framework with SDL via CMake. I have the following project structure: MyProject -chipmunk: --include --demo: ---CMakeList.txt ...

The right way to create and update objects in a Pymunk camera windowed world?

I asked about how to have a camera window view of a Pymunk+Pygame world and although I received a generously explained answer, I'm not convinced, because the person uses a Pygame Surface to blit....

How to rotate pymunk joints at will?

I'm trying to create a walking spider like this: I considered using a SimpleMotor at the pink and red joints and control them using the rate function. But when I tried, I get an error that the...

Why android application gives compiler error for Admob integration using Firebase using c++ SDK

I want to integrate AdMob in cocos2dx 3.17 c++. I have referred https://firebase.google.com/docs/admob/cpp/cocos2d-x link. But I am getting error : Error while executing process...

Streaming MP3 to Discord.net 2.0 - audio is super-fast (chipmunk). Ideas?

I am using a mashup of examples found online to send the audio from a MP3 file to a discord channel via Discord.net 2.0 (c#). It took forever to get any audio at all to send... and now that I at...

Is there an environment variable to disable PyMunk/Chipmunk from printing `Loading chipmunk for Linux`

I am trying to run a PyMunk simulation in a subprocess and get a floating point return value from a pipe, however every time I run the simulation I also get stuck with a Loading chipmunk for Linux...

How to create different voice effects in android?

I'm developing Voice Changer App who record the user voice and create different effects. I'm using AudioRecord to record the voice and save in the .pcm format using BufferedInputStream. And using...

Pymunk/Chipmunk2d - dynamic bodies colliding with static bodies generating collsion impulses

simple question, but couldn't find an answer: Can static bodies apply collision impulses to dynamic bodies? here's a little recording of what my code does As you can see, the two dynamic triangles...

How to prevent fast moving objects passing through statics when calculating pi with colliding blocks

I am trying to implement a similar program to the following in Python using Pymunk and Pyglet. My current implementation works well at low velocities however at high speeds the block can pass...

Binary Bomb Lab Phase 4

Here is my assembly code: Dump of assembler code for function phase_4: => 0x08048cb1 <+0>: push %esi 0x08048cb2 <+1>: push %ebx 0x08048cb3 <+2>: sub $0x14,%esp 0x08048cb6 <+5>: mov...

ffmpeg concat converts multiple videos to chipmunk version with half the video silence

i try to concat multiple videos to one video and add an background music to it. for some reason the background music is perfectly added to the output video but the audio of each part of the output...

Tkinter and 32-bit Unicode duplicating – any fix?

I only want to show Chip, but I get both Chip AND Dale. It doesn't seem to matter which 32 bit character I put in, tkinter seems to duplicate them - it's not just chipmunks. I'm thinking that I...

How to display mongodb data in react-native-chart-kit?

I am trying to display value in my react native charts using chart-kit package of react native. I have this type of structure and 4 records in atlas: _id: <RANDOM...

Google Cloud Speech-to-Text doesn't transcribe streamed audio correctly on some iDevices

I've implemented the Google Cloud Speech to Text API using realtime streamed audio for the past few weeks. While initially everything looked really well, I've been testing the product on some more...