Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [torque]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
3 answers
1k views

What has your experience been with Torque products? [closed]

I'm most interested in your experience with Torque-X, the Managed XNA version of their engine. How did it perform in your use case? (also info on your use, would be helpful) What was the usability ...
8 votes
4 answers
2k views

Which for basic RTS prototype: Unity or Torque? [closed]

I'm wanting to test my hand at writing an RTS (something I've never gotten very far with), and so I'm looking for an indie engine that would give me the most success with a quick setup that I can then ...
Lance May's user avatar
  • 183
5 votes
1 answer
3k views

How to simulate car drivetrain (in Unity)?

One of my hobby projects involves cars. Up until now I had a quick and dirty "one class" implementation of engine+gearbox+wheels, but I thought that this is ugly, and I want to go a bit more realistic....
fredlllll's user avatar
4 votes
2 answers
3k views

How do I set angular velocity/torque so that it's pointing to velocity/direction?

Right now, when I spawn a shootable object, it goes like this: Because I just set it's angle to this: ...
Gintas_'s user avatar
  • 467
3 votes
3 answers
2k views

Javelin throw projectile motion

I am trying to simulate throw of javelin using projectile motion. The basic physics of projectile motion of a point was used to position the javelin. For the rotation part, I just assumed that the ...
ukh's user avatar
  • 155
3 votes
2 answers
810 views

2D Physics: What happens with torque when center of mass changes?

Novice programmer and explorer of simple 2D physics, here. I have a simple 2D object made up of two rigid bodies connected at a fixed joint. The two rigid objects can rotate freely about that fixed ...
Curtis Sherwood's user avatar
3 votes
2 answers
1k views

Applying Angular Acceleration in a Basic Physics Model

I'm attempting to use a basic physics system to create an arcade flight model. So far I have managed to get the aircraft moving forward, apply gravity, etc. However, after trying to implement torque I ...
Stephen Locke's user avatar
3 votes
1 answer
859 views

Game Physics: Calculating a collision response using the Separating Axis Theorem?

I am working on a project in which I have implemented the Separating Axis Theorem to detect collisions between objects. My current collision response is an object that contains whether it is ...
Riko Ophorst's user avatar
2 votes
2 answers
2k views

How to count rotations or spins when using addtorque?

I have a rigidbody and use 4 keys to addtorque in 4 different directions: W adds torque positively along the X axis (pitch forward) S adds torque negatively along the X axis (pitch backward) A adds ...
FrontEnd's user avatar
  • 1,707
2 votes
2 answers
4k views

c++ How to use angular velocity that derived from inertia and force(torque) in 3d

I am relatively new to game development. May my terminology and description are not appropriate. Please excuse my poor phrasing and help me by giving advice on how to question better if this question ...
Tofu_Craving_Redish_BlueDragon's user avatar
2 votes
1 answer
161 views

Torque2D, Class vs Datablock

I'm scripting my first game with Torque2D and have not fully understood the difference between "Class" and Datablock. To me it seems like ...
Max Kielland's user avatar
2 votes
0 answers
419 views

How to apply specific torque to configurable joint in Unity

I have a torque vector that needs to be applied to a configurable joint connecting two rigid bodies. This joint configured in such a way, that it only allows angular motion around all 3 axes. Is ...
IlliakaillI's user avatar
1 vote
1 answer
255 views

Moving from HeroEngine to Unity/Torque 3D

Short background: small team with some financial back-up from investors, yet no multi-billion-$ enterprise, working on an MMORPG for PC. HeroEngine looks like the perfect solution. Everything ...
Patric Hartmann's user avatar
1 vote
0 answers
92 views

Object stuck against an obstacle still pushes other objects away

I have an object pinned against the ground by a revolute joint. A motor on the joint makes the object spin. Sometimes the object becomes stuck pushing against a static body. When it happens the object ...
Blue Nebula's user avatar
1 vote
0 answers
69 views

Control Torque Inputvector

I'm faced with the following problem: I'm trying to implement a rigidbody-based movement for my submarine game which means I want (need?) to useAddForce() and <...
maxi6655's user avatar
1 vote
1 answer
67 views

Framerate limited by lack of mouse movement? [closed]

Using Torque, it appears that the program is running at around 25fps when the mouse is still, but as long as I keep the mouse moving, the framerate can hit well over 300fps. What in the world would ...
Estam's user avatar
  • 11
1 vote
1 answer
45 views

Crash when using datablocks

I have really throughly searched the net and could not find any solution for this so I ask for help here. Anyway, I have this datablock in datablocks.cs: ...
user avatar
1 vote
1 answer
169 views

Bullet Physics Applying Torques Effects not noticeable

I am applying torques to a rag doll in order to make it move/walk. For some reason, I am unable to view any effects when I use a call to rigidbody to apply torques even though these torques are ...
terminix00's user avatar
0 votes
1 answer
320 views

ForceMode in AddTorque in Unity game development

In UNITY game development platform while programming in C# I came across a method to add torque to component: public void AddTorque(float x, float y, float z, ForceMode mode = ForceMode.Force); In ...
user avatar
0 votes
1 answer
52 views

τ = r × F, In unity3d/PhysX how do we define r?

How does PhysX define/calculate the distance from the center of mass where we apply the force to produce a torque?
RhinoPak's user avatar
0 votes
1 answer
119 views

Torque orientation when changing the coordinate system

I have some Unity application, where the user can input a torque that will be apply to a given rigidbody. Nonetheless, the sophistication comes from the fact that the input from the user is in a given ...
lufydad's user avatar
  • 103
0 votes
1 answer
415 views

Making a 2D gun spin from recoil when it shoots

I am trying to clone the game "Flip the Gun" as an exercise. Here is the behaviour I have so far. And here is the code I am using: ...
Frank Sun's user avatar
0 votes
1 answer
490 views

Add impulse and torque to a cube

I would like to spawn a cube if I press space and apply a short impulse of force and torque to make the cube rotate. I have some calculations for the impulse but I think they are wrong since the cube ...
potu1304's user avatar
0 votes
1 answer
174 views

Kinematic equations script fail

I added the kinematic equations to my code and now none of it works. I get the error rigidbody.torque assign attempt for 'Enemy' is not valid. Input torque is { 0.000000, NaN, 0.000000 }. ...
Matt A. Draft's user avatar
0 votes
0 answers
33 views

Torque doesn't get into equilibrium with simple spring system

I'm trying to implement a spring-mass-dampener system but running into some issues. The linear movement gets into equilibrium as it's supposed to, but the object just keeps rotating until the ...
Dóri's user avatar
  • 1
0 votes
1 answer
595 views

Unable to rotate a 2D object, wanting to move it like a ball/wheel

I'm using Unity2D. I have a very basic 2D space with a platform, a ball and 2D physics. Physics is being applied and ball sits on top of the platform. However, it will not spin. Below is the ...
mikemike's user avatar
  • 189
0 votes
0 answers
98 views

Torque Generation

I have written a basic physics engine. It is able to handle rotations. But how do I handle case like this where an object sits on top of another and needs to rotate due to the effect of gravity ? I ...
ukh's user avatar
  • 155
0 votes
1 answer
34 views

Torque2D default t2dTileMap object

When I start a blank project I have noticed that I get one t2dSceneGraph and one t2dTileMap (under the project tab). I selected ...
Max Kielland's user avatar
0 votes
1 answer
66 views

Torque2D createTileLayer

The script reference "manual" is not much of a help. When I look up createTileLayer(tileCountX/tileCountY/tileSizeX/tileSizeY) it doesn't say more than it creates a ...
Max Kielland's user avatar
-5 votes
1 answer
533 views

How to create a camera hack for a Torque 2D game?

first I’m not programmer, I’ve been using a popular game for some time and I think it would make a great medium for machinima. Problem is that it’s a top down view startegy game and it doesn’t give ...
WaterBearer's user avatar