Relating to the motion of objects through space and time. Including concepts such as acceleration (thrust and gravity), mass, collision response, friction and more.

learn more… | top users | synonyms

-3
votes
0answers
43 views

Developing something different game [on hold]

I want to develop something different. Like world of goo ,angry bird ,flappy bird All i want from you guys is just an imagination , an idea, a thought
0
votes
2answers
59 views

Trajectory of a spinning ball

How do I would precalculate trajectory of a kicked ball, when it's spinning? I'm applying spinning using simplified Magnus effect every frame like this and it works: acceleration += swerve × ...
0
votes
0answers
26 views

Looking for simple aabb physics engine [on hold]

as you saw in the title, I'm looking for a simple aabb physics engine. I need the following features: NEEDS: ~aabb collision detection ~solid bodies ~gravity ~velocity and accelartion PREFERRED: ...
0
votes
0answers
19 views

looking for JavaScript physics engine [on hold]

I am looking for a simple JavaScript Physics engine that meets the following requirements: NEEDS: ~aabb collision detection ~solid bodies ~gravity ~velocity and acceleration PREFERRED: ~ability to ...
8
votes
3answers
128 views

Physics simulation methods for large delta times?

What physics simulation methods are most suitable for really big delta time (hours to weeks)? In addition, would I face any problems combining different methods for big and small delta times?
8
votes
1answer
137 views
+50

How to snap player movement to the surface of a 3D object using Unity?

I'm trying to create an effect similar to that of Mario Galaxy or Geometry Wars 3 where as the player walks around the "planet" gravity seems to adjust and they don't fall off the edge of the object ...
1
vote
1answer
42 views

2D bouncing ball simulation - angular velocity

How does angular velocity of a ball affects it's speed after a bounce? I'm trying to simulate 2D bouncing ball physics. I've found a nice solution how to calculate ball's velocity after a bounce: ...
1
vote
1answer
47 views

Simplified aerodynamics for 2d (top-down) airplane

I am writing a top-down 2d game, in which the player can control an airplane via the WASD keys. The W key should move the plane upwards (north), the A key to the west, and so on. Now I need a ...
0
votes
1answer
86 views

Jump Issue(Unity3D)

This is my first character control script. Where a cube is my player and the objective the i want to achieve with my script are 1.the cube moves in horizontal axis till the button is pressed once ...
-1
votes
0answers
53 views

Making a line/rope follow the character

i have a main character that walks in all directions (up, down, left, right). What i want is this: The player goes to the point A.. When he reaches the point A and touch the button, a rope is gonna ...
3
votes
1answer
269 views

Change unity physics engine speed

Is there a simple way to change the speed* of unity's physics engine like in the game SuperHot? Any script language is ok but javascript is preferred. *I am not sure if speed is the correct term.
1
vote
2answers
104 views

How can I handle position in an entity system where position can be 2D or 3D?

I'm working on a game engine to learn how it's done (so I might better take advantage of the techniques involved and other, similar engines in the future), and I've run into a problem when handling ...
3
votes
2answers
101 views

Sound Synthesis from object collision in Virtual Reality Environment

I have a project whose subject is "Sound Synthesis from object collision in Virtual Reality Environment" First of all, I have to define some objects with certain attributes (like shape, mass, ...
0
votes
0answers
18 views

Using box2d with starling

In my game I have a Main class in which i am initializing starling framework by passing Game class like below myStraling = new Starling(Game , stage); In the game class I have Instances of Welcome ...
1
vote
0answers
71 views

Getting child collider when collision occurs in compound object in unity3d?

I have a compound object. The parent of the compound object hierarchy has a script that is listening to the OnTrigerXXX callbacks of the children. When this compound object collides with other objects ...
1
vote
0answers
45 views

Manual response when 2 shapes made of rectangular volumes collide

I have 2 compound objects made of rectangular blocks. One of them (the one that is moving) has a script that listens to OnTrigger callbacks. What I need is to position the moving compound object on ...
0
votes
2answers
48 views

Irregular gravity bouncing

I am working in a simple bouncing ball game. The ball moves right to left at a constant speed and back when it collides with the border of the display. But it jumps every time the the user clicks and ...
0
votes
1answer
26 views

Altering Animation Playback Given Terrain Information

Say my character has a jog animation. Assuming Y is vertical, his feet leave the ground at Y=0 and hit the ground again at Y=0. This works fine in a world like that of Minecraft, where every surface ...
0
votes
0answers
34 views

Calculation technique for 2D inertia tensors?

Just wondering what the techniques are out there. It's only 2D so I figured there'd be a good chance for there to be a "one size fits all" solution out there that's essentially an analytical solution. ...
3
votes
1answer
175 views

Jelly ground collision

For fun I am trying to replicate the mechanics from The Floor is Jelly. So far I have successfully created "jelly islands/blocks" which are represented by an array of points and then drawn by using ...
0
votes
1answer
35 views

LibGDX Bounding Rectangles

I'm creating some rectangles surrounding my sprites for my player and bullet class to detect collisions with the overlaps method in Intersector class of LibGDX. I have a question: When I instantiate ...
0
votes
1answer
61 views

Cocos2dx - Physics - Abort() When Changing Dynamic PhysicBody to Static?

I just learned cocos2dx v3.3 integrated chipmunk physics engine. Here ,as you see, I create a simple circle with physic as: auto sprite = Sprite::create("circle.png"); auto body = ...
1
vote
2answers
108 views

Framerate dependent movement

I'm moving my character controller using Euler integration like this: Vector3 originalPos = transform.position; Vector3 acceleration = Physics.gravity; velocity += acceleration * Time.deltaTime; ...
1
vote
1answer
56 views

How can I have a Mecanim animation with displacement and physics?

I have 3D wolf models from my animator with displacement (i.e the wolf transforms with animation, not in-place). I have added rigid bodies to the models. I am facing following issues while executing ...
0
votes
0answers
33 views

How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working

How do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working. PoolGameSingle poolgame = new PoolGameSingle(); var cue = poolgame.CueStick; ...
0
votes
2answers
66 views

How do i calculate the velocity of a sprite after it leaves circular motion?

I'm trying to make a game where the character can swing on a rope. I want to know how the velocity of player is calculated when it stops circular motion. Any help would be appreciated.
0
votes
3answers
149 views

Do I need to learn any physics if I use a physics engine? [closed]

Complete novice out here. Of course I know basic physics like mass and inertia. I don't want to make an engine I just want to make a game and use a physics engine made by someone else. Do I need to ...
0
votes
0answers
71 views

How to determine velocity from force

I recently started a project with the intention to master the physics aspect of Unity. Although I have a good knowledge of Unity, I never had the opportunity to work on game that makes extensive use ...
0
votes
0answers
32 views

Applying angular velocity distorts model

I am calculating the orientation of a sphere through the following code wV = new Vector3(0, pi/2, 0); w = new Quaternion(wV, 0); // o is the current Orientation o.Normalize(); w = 0.5f * w * o; // dt ...
0
votes
0answers
35 views

How to get yaw of bullet physics vehicle?

I am using the Bullet Physics port to java, JBullet, and am trying to render a vehicle body that i created in Blender on top of the vehicle chassis. Since i cannot effectively find a way to render ...
0
votes
3answers
56 views

In a Sonic-esque platformer, how to tell if the chracter is upside-down or not?

In a Sonic-esque platform game, how do you know if the player's character is currently upside down? Let's say the character is running to the left: At a certain point the character will begin to ...
1
vote
3answers
106 views

Formula for Planetary Alignment

I am attempting to create a game where there is a universe of two 16-bit addresses ranging from -32768, -32768 to 32767,32767, or in hexadecimal, each value can run from $8000 to $FFFF then 0 to ...
0
votes
1answer
73 views

Box2D recommended step, velocity and position iterations

Here in this article there is a nice explanation that velocity iterations and position iterations settings affect the way bodies will react when they collide, and step affects on speed and how gravity ...
1
vote
2answers
75 views

Adding gravity to arrival steering behavior

I trying to write an autopilot for the classic Lunar Lander or its clones. According to this paper, the arrival behavior is exactly what I need for a soft landing. In this example, it accelerates at ...
2
votes
1answer
93 views

My pool balls often jump around when there are two or more balls colliding/touching

I'm working through the book 'Introduction to Game Physics with Box2D' and I've created a little pool game with the example code. Despite the name, there is NO box 2D used in this particular exercise. ...
1
vote
0answers
133 views

How do I detect collisions between a particle-based net and a ball?

I've implemented a net using Verlet integration and many points connected with constrains; like this demo, but in 3D. I want to implement collision detection between this net and a ball (like in a ...
0
votes
1answer
54 views

Fixed joints in 3D

I'd like to build something like rigid origami in 3D space. So I need some mesh where each vertex is a particle and the set of the edges makes a chains/fabric where each edge is a "fixed length" ...
0
votes
0answers
94 views

How to move rigidbody player to its facing direction with AddForce?

How can I move a rigidbody to its facing direction? I've already tried this: rigidbody.AddForce (transform.forward * v, ForceMode.Acceleration); // v is a public float which gets a new value in ...
0
votes
1answer
94 views

Creating a Player object in a physics engine [duplicate]

I have a working physics environment using Farseer - but how do I create a player object that can walk around? My current attempt involves applying forces to a rectangular body whenever keys are ...
0
votes
0answers
16 views

Projectile Motion in lwjgl with java [duplicate]

I was trying to make a game with a bow and arrow using lwjgl but I couldent get the arch right. I have a function called projectile that is updated once a frame for each arrow. my frame cap is at 60 ...
0
votes
1answer
59 views

Oblique launch within a game

I'm creating a simple game in python that will follow the same logic of DDTank and Worms. The graph is formed by characters. The buildings that will be destroyed are formed by '*', players are '@' and ...
0
votes
1answer
39 views

Moving CCNode with constant speed in cocos2d

I want to move the object (CCNODE) with constant speed in any direction , what i have did till now is applied a force to object at start to get it moving and set elasticity as 1 and friction as 0 to ...
0
votes
1answer
108 views

2D physics collision/gravity problem?

I'm using Love2D and my own physics engine to create a 2D platformer. Y collision works fine, but X collision... well, it's a bit buggy. When I move off of a small platform I've created, I fall but it ...
1
vote
1answer
110 views

Downsides of using this integration formula for movement?

So I read that Gaffron integration basics tutorial and noticed how the Euler integration method gives a small error over time. I implemented the RK4 and noticed that with constant acceleration, I ...
14
votes
3answers
2k views

How can I create a stretchy, breakable pizza cheese material?

I want to create realistic pizza and allow user interact with it. What I want: What I created: I created model of the pizza (8 pieces) in Blender, then imported it into Unity. The piece of ...
1
vote
1answer
81 views

How can I implement smooth digging effects in a tile-based game?

I'm trying to make a Dig Dug styled game where you will be digging into a material. This is going to be a tile-based HTML5 game and I have decided to use the Phaser framework. One way to do the ...
0
votes
2answers
92 views

How to move an object uniformly from one point to another at a fixed angle? [duplicate]

In my 2d java game, I need to move Point objects (as projectiles) from Enemy object to Player object in a straight line. I did some research and found out that I can use atan2(x, y) method of Math ...
1
vote
1answer
62 views

Ground in AndEngine

I'm quite a newbie to AnEngine and I have a problem. I have been searching a lot, but I couldn't find answer. I'm trying to make my first game, but I have no idea how to make ground. I'd like to make ...
0
votes
0answers
72 views

Implementing a group formation behavior

I am trying to implement a group formation behavior where all the units in my group follow a leader and maintain their position throughout. So far I am able to move them, rotate and follow the leader. ...
0
votes
0answers
18 views

calculating avoidance forces for similar objects unity [duplicate]

I am trying to work on collision avoidance for my troops. Currently all my troops have their target object as the leader who is wandering in physical space. The troops just follow the leader but they ...