Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Wheel-Constraint causes a AccessViolationException #349681
12/10/10 09:41
12/10/10 09:41
Joined: Aug 2010
Posts: 9
A
a350 Offline OP
Newbie
a350  Offline OP
Newbie
A

Joined: Aug 2010
Posts: 9
Hello specialists,

I control Acknex-Engine with Stromausfalls's C#-Wrapper. I had a wonderfull working A7-project, until I upgraded to A8. As the release-note says, the physics has to be adapted for A8.

Now my big, after a number of hours of searching unsolved, problem occurs, with my wheel-constraints.

I register a car-entity for physics. Then I want to add a wheel-constraint. According to manual, in A8 the wheel-entity need not be registered for physics.

During adding the constraint, the application throws an AccessViolationException when native function NativeEngFun.pXcon_setparams1(entityPtr, vecParam1Pointer, vecParam2Pointer, vecParam3Pointer) is called.

Confusing is, when I register the wheel-entity for physics, I get NO exception. But when I do this, the constraint doesn't work at all and does uncomprehensible movements. It seams, you MUST not (and not only NEED not, as the manual says) register the wheel-entity for physics when you want to use it for wheel-constraint.

Due to the restriction, that I can't look into the native-dll, it's hard to fix the problem.
This case I tried on my old PC (WinXP, 32bit), too. I also get the same exception. OS could aparently not be the cause.

Does anybody knows this problem?
What can I do to fix?
Is it a recommendation or a rule, to NOT register the wheel-entity for physics?


Acknex A8 Commercial
Windows 7 / 64bit
Intel Core i7-950
GeForce GTX470
Re: Wheel-Constraint causes a AccessViolationException [Re: a350] #349689
12/10/10 12:10
12/10/10 12:10
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
As the manual says, you must not register the wheel for physics. When you do, you'll end up with two wheels, one real wheel and one physics entity at the same position. That's why you got the strange movements.

I don't know the reason of the C# wrapper exception, though. Check if the parameters of the wrapper function match the parameters of the real PhysX functions. Probably Stromausfall can help here.


Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1