Questions tagged [physx]

PhysX is a 3rd-party physics engine owned by NVIDIA and most commonly used in the video game industry.

117 questions
1
vote
0 answers

what are the steps to compile and run NVIDIA PhysX (version4) Kapla Demo and sample code using cmake?

I am trying to get into NVIDIA PhysX SDK. But cannot find how to actually run the following, Kapla Demo: https://github.com/NVIDIAGameWorks/PhysX/tree/4.1/kaplademo Other Samples: https://github.com/NVIDIAGameWorks/PhysX/tree/4.1/physx/samples . i…
Sadern Alwis
  • 104
  • 1
  • 4
  • 17
1
vote
2 answers

Lossless movement in hinge joints - Unity

I've created a simple pendulum in Unity - GameObject with Rigidbody and Hinge Joint components. I've set both drag ang angular drag to 0. With starting position at 90 degrees I'd expect the pendulum to swing back and forth from 90 to -90 degrees.…
Chris
  • 41
  • 2
  • 6
1
vote
1 answer

Issue creating triangle mesh in PhysX

I've constructed a quick python script that reads a wavefront .obj file and outputs the verticies and faces to files. I have another C++ function that reads these files and creates a mesh based of-of those. The issue that I'm experiencing is that…
Zyie
  • 134
  • 2
  • 12
1
vote
2 answers

PhysX.sln doesn't compile (PhysX 3.4)

I just downloaded PhysX 3.4 on GitHub, but it seems like I can't compile PhysX.sln. I get a lot of errors like this : C1083 Cannot open include file: 'stddef.h': No such file or directory (compiling source file…
aqwerty
  • 61
  • 8
1
vote
1 answer

Nvidia Physx on iPhone

is it possible? if yes, how? if not, how does unity3d make it happen?
1
vote
0 answers

Unity3d. Convex collider restrictions

I want to predicate that I cannot set collider to convex. I already found some restrictions: - trigs must be between 3 and 254. But there still some cases that I can not handle: Vector3[] vertices = new Vector3[] { new Vector3(-0.1f, -100f, 0f), new…
Stas BZ
  • 1,184
  • 1
  • 17
  • 36
1
vote
0 answers

Coordinate system of Unity's bizarre impulse property? Get forces in world space?

OK this is officially the most difficult Unity3D question on the site: If you have two objects in Unity, perhaps drag A around with your finger, when you collide with B, these days Unity sensibly gives you the forces PhysX has decided to apply to…
Fattie
  • 27,874
  • 70
  • 431
  • 719
1
vote
2 answers

instantly sleeping stack of dynamic objects

My scene has a number of stacks of dynamic objects. When the simulation starts, it takes a while for these to "resolve" before they become sleeping islands. This affects performance significantly for the first few seconds. Are there techniques for…
eed
  • 11
  • 1
1
vote
1 answer

PhysX: collision onContact does not work

I'm using PhysX.NET (C# wrapper for PhysX) and I am trying to get a notification of collision between two spheres using onContact in SimulationEventCallBack. I have created a new subclass for SimulationEventCallback and overridden the OnContact…
1
vote
1 answer

Editing One Actors Gravity In PhysX

So, right now, I'm trying to work on a Helicopter system for a game. The issue i'm having it, I want to edit the gravity for the helicopter, and only when I'm in / using it, but right now it's causing all objects that use PhysX to lose it's…
m70b1jr
  • 21
  • 3
1
vote
0 answers

How to read updated cloth particles positions

Currently, I'm reading the Krishna Kumar's book "Learning Physics Modeling with PhysX". Source code for the cloth example uses a method getRenderBuffer() to get points, triangles and quads that we define for the mesh description but he doesn't…
1
vote
1 answer

How can I calculate the Weber Number with PhysX data?

I'm developing a non-photorealistic water rendering demonstration using PhysX as the underlying physics solver (using it's SPH simulation), and want to add foam and droplet rendering to enhance its visuals. First I used the number of neighbor…
Liordino Neto
  • 59
  • 1
  • 13
1
vote
2 answers

Why should the mass of one object never be 100 times more than another?

I've read in a lot of places that having two objects colliding with each other where the mass of one is over 100 times greater than that of the other will cause issues with the physics of the collision. However when I tested it myself I found no…
Benjamin James Drury
  • 2,353
  • 1
  • 14
  • 27
1
vote
1 answer

Read the position Actor in PhysX

I have a question about PhysX SDK 2.8.1 I'm an actor: NxActorDesc actorDesc; NxBodyDesc bodyDesc; NxSphereShapeDesc sphereDesc; sphereDesc.radius = 1.5f; actorDesc.shapes.pushBack(&sphereDesc); actorDesc.body = &bodyDesc; actorDesc.density =…
1
vote
0 answers

Linux -malign-double and clib

Linux (Ubuntu 14.04), gcc, c/c++ project. I have middleware (nvidia PhysX) that needs -malign-double in compile options (my app is x86 32bit) but when I add it to project flags some system structures (stat64, aiocb64, etc...) that contain off64_t…