game-physics Questions
1
I've created a SpriteKit Scene with physics bodys. This is working quite well. I'm also scrolling the scene around, using the Apple best practice with a "camera node".
My scenes node tree is like ...
Myrticemyrtie asked 27/1, 2016 at 8:10
5
I have a strange memory leaks when creating Sprite Kit physics bodies with custom shapes. This is how my implementation looks:
CGFloat offsetX = self.frame.size.width * self.anchorPoint.x;
CGFloat...
Graiggrail asked 22/11, 2013 at 0:48
1
Solved
From the image above, given an initial position of b0(x, y), an end position of b1(x, y) and positions a(x, y) and c(x, y). How can I predetermine if square B0 will move from b0(x, y) to b1(x, y) ...
Mongolic asked 4/1, 2016 at 1:4
3
Solved
The following fluid simulation is a translation of a paper by Stam. Something truly terrible has happened. Each time the program is run with a low DIFF=0.01, the values start off small and then rap...
Schismatic asked 27/11, 2015 at 4:39
2
Solved
I have a SKSpriteNode with a dynamic physics body on a SKNode *_fgLayer.
Now, when I pause or unpause the game I want that SKSpriteNode to remain in place and not rotate or fall down. If I simply ...
Khaddar asked 9/3, 2014 at 12:11
2
I currently have a ragdoll figure, which consists of a parent node (with no physics bodies attached), and lots of child nodes which each consist of a circle body. The circles are connected to each ...
Trainbearer asked 28/8, 2014 at 17:56
2
Solved
Let's say I have a SKSpriteNode that represents a car wheel, with a circular SKPhysicsBody successfully attached to it. The genre would be sideways scrolling 2d car driving game/simulator, obviousl...
Belay asked 13/8, 2015 at 20:8
2
Solved
I am using SpriteKit to shoot a projectile. The projectile node is given an impulse using -(void)applyImpulse:(CGVector)impulse.
I want to calculate the distance the projectile will fly before hi...
Frosted asked 5/1, 2014 at 11:52
2
Solved
I'm taking the following approach to animate a star field across the screen, but I'm stuck for the next part.
JS
var c = document.getElementById('stars'),
ctx = c.getContext("2d"),
t = 0; // ti...
Sabulous asked 8/8, 2015 at 4:2
1
Solved
I want to move a SKSpriteNode on the Y-Axis. The SKSpriteNode called Player has no Velocity.The Player can only jump if a Platform is in contact.
Everytime the Screen is touched, I want to give th...
Barquentine asked 16/7, 2015 at 9:45
4
I've got a coin RigidBody and walls around it with box colliders. For trial purpose I've applied the following code to the coin.
private void OnMouseDown()
{
rigidbody.AddForce(30.0f, 0f, 5.0f, ...
Sagittal asked 30/1, 2014 at 16:18
3
Solved
I'm trying to use a quadtree for 2D collision detection, but I'm a little stumped on how to implement it. First of all, I'd have a quadtree which contains four subtrees (one representing each quadr...
Xuthus asked 13/2, 2011 at 1:34
4
What I'm looking for
I have 300 or fewer discs of equal radius on a plane. At time 0 each disc is at a position. At time 1 each disc is at a potentially different position. I'm looking to generate...
Hypersensitive asked 21/5, 2015 at 13:45
3
Solved
Hi I'm trying to fix this bug with spritekit's physics shape appearing upside down.
[SKPhysicsBody bodyWithTexture:monsterTexture size:monsterTexture.size]
The first time the monster appears the...
Fishgig asked 2/1, 2015 at 20:17
3
I am writing a physics engine and having a hard time figuring out a good way to design my data storage.
The functionality that I want:
Have a class that represents a PhysicsBody
Have a class th...
Zosi asked 30/4, 2015 at 6:24
1
Solved
I am wondering how app developers create games with 3D animations and graphics. Does anyone know how those games are made, and can it be done with android studio?
Claudetta asked 18/4, 2015 at 4:29
3
Solved
Found a lot of physic engines out there but nothing that fit my needs directly.
I try to to find a simple way to push and pull boxes including collision detection which respects the next neighbori...
Jasun asked 11/2, 2015 at 8:8
1
Solved
I have ball that is bouncing around the scree, something like pong.
Radius of ball depend on the with of screen.
I have found that ball is not going with same speed on iPhone and iPad.
Because bal...
Pace asked 22/7, 2014 at 8:28
0
Hopefully someone can help. I have been pulling my hair out on this one! Below is some of the control pad code from my Sprite Kit game which uses applyForce to move the hero ship. I like how the co...
Aarika asked 26/1, 2015 at 7:52
2
Solved
Important note: this question has utterly no relation to "PhysX", which is a computer-game-physics system (useful for the physics in arcade games such as ball games, etc); PhysX is a system built-i...
Freed asked 18/1, 2015 at 21:18
4
I want to create a rope like the one that is shown in this video.
What is the best way to develop a rope like this?
I've already tried to start and I think the best way to do it, is to make many l...
Delimitate asked 28/12, 2013 at 6:56
1
Solved
is it possible to use applyAngularImpulse but not exponentially increase the speed of the wheel?
Ideally I'd like to have the wheel follow my finger, but setting node.zRotation += atan2f(y2-y1, x2-...
Brahmi asked 22/10, 2014 at 5:19
1
There are a lot of discussions of how MotionEvent.getX/.getY are "unreliable" (or other terms) and that we should use the Raw versions of these calls to get coordinates.
On my Nexus 7, I have disc...
Eurhythmics asked 21/5, 2013 at 17:33
1
Solved
I am using Swift and Sprite Kit to develop a game on XCode Beta 6.
In order to detect if all nodes are sleeping, i check their physicsBody.resting property.
In update method i print out the result...
Proximity asked 24/8, 2014 at 11:48
4
Solved
I'm a complete newbie when it comes to game development and I need someone to point me to the right direction.
For the sake of clarity please consider the following animation.
Basically I n...
Gunplay asked 24/4, 2014 at 16:1
© 2022 - 2024 — McMap. All rights reserved.