Search found 7 matches

by SlapY
Wed Apr 10, 2013 9:56 pm
Forum: Questions and Help
Topic: [XNA] Custom Rendering: Rotation missing?
Replies: 11
Views: 7893

Re: [XNA] Custom Rendering: Rotation missing?

Due to the fact that I actually did not knew what Kinematic and InertiaTensorInverse was - I'm pretty sure I did not set/change one of them.

(Also - I checked it ;) )
by SlapY
Wed Apr 10, 2013 9:22 pm
Forum: Questions and Help
Topic: [XNA] Custom Rendering: Rotation missing?
Replies: 11
Views: 7893

Re: [XNA] Custom Rendering: Rotation missing?

Well that would be weired.. My initialisation of the mobilemesh is as follows: = new MobileMesh( this.RawVertices, this.RawIndices, new Physics.MathExtensions.AffineTransform(Vector3.Zero), Physics.CollisionShapes.MobileMeshSolidity.DoubleSided, 1f ); So the mass must be one. Also - would it be affe...
by SlapY
Wed Apr 10, 2013 8:53 pm
Forum: Questions and Help
Topic: [XNA] Custom Rendering: Rotation missing?
Replies: 11
Views: 7893

Re: [XNA] Custom Rendering: Rotation missing?

Turns out ApplyAngularImpulse doesnt work while setting the AngularVelocity to eg. new Vector3(2, 0, 0) actually rotates it?

But is that the correct usage?
by SlapY
Wed Apr 10, 2013 8:19 pm
Forum: Questions and Help
Topic: [XNA] Custom Rendering: Rotation missing?
Replies: 11
Views: 7893

Re: [XNA] Custom Rendering: Rotation missing?

Okay now. I stepped through and compared the matrix at the calculation with the matrix that actually get's set to the shader - they're equal :/ .. I even tried to replace the usage of the entitie's WorldTransform with this: Rotation = Matrix.CreateRotationX(this.Body.AngularVelocity.X) * Matrix.Crea...
by SlapY
Wed Apr 10, 2013 7:24 pm
Forum: Questions and Help
Topic: [XNA] Custom Rendering: Rotation missing?
Replies: 11
Views: 7893

Re: [XNA] Custom Rendering: Rotation missing?

I'm applying Angular and Linear Forces like this: Vector3 angularImpulse = new Vector3(10, 0, 0); Vector3 linearImpulse = new Vector3(200, 0, 0); // Note: Model is my own Class which (in this case) contains an MobileMesh which is stored like this: "public Entity Entity" myModel.Entity.Appl...
by SlapY
Wed Apr 10, 2013 6:55 pm
Forum: Questions and Help
Topic: [XNA] Custom Rendering: Rotation missing?
Replies: 11
Views: 7893

Re: [XNA] Custom Rendering: Rotation missing?

Thanks Norbo,

I added the AngularVelocity to my debug output and I think it's "operating" (value's changing and stuff)

So this must be a matrix multiplication failure or something?
by SlapY
Wed Apr 10, 2013 6:41 pm
Forum: Questions and Help
Topic: [XNA] Custom Rendering: Rotation missing?
Replies: 11
Views: 7893

[XNA] Custom Rendering: Rotation missing?

Hi Guys, I'm currently integrating BEPU within my project. After browsing the Board, checking out the Demos and GettingStartet stuff - I still can not figure out why my (custom drawn) Model has got no rotation at all? In my current test, I'm using a MobileMesh's WorldTransform for the rendering - li...