Jump to content

  • Log In with Google      Sign In   
  • Create Account

Guilherme Silva

Member Since 08 Jan 2012
Offline Last Active Feb 04 2013 02:37 AM

Posts I've Made

In Topic: Bullet spacing consistency

23 June 2012 - 12:09 AM

Instead of changing the bullet's x value, you should rather either increase the it's velocity or apply an impulse.

In Topic: Farseer Physics Movement XNA

17 June 2012 - 02:18 PM

Hey. I am working on a 2D Terraria-Like game, and I needed some help with the movement. To handle both collisions and physics, I am using the Farseer Physics Engine. I have two questions, which are probably quite simple.

1. How can I make my character stop moving once the movement keys are released. With the code below, the character still continues to roll:


As can see in the source code of the Body class there is a method called ResetDynamics(). I believe that this method is the one you are looking for.

2. Can I make the character not bounce at all after colliding with a platform? I have set the RestitutionCoefficient to 0, but it still bounces a very small amount.



I am not sure about this one, but try also setting the ground restitution to 0.


3. Is there a way to prevent the character from rotating its texture?

There is a propriety in the class Body name FixedRotation. Set it to true to have the character keep its rotation to 0.

Hope this is helpful ;).

In Topic: Rotating multiple wheel (C++, DirectX and 3Ds Max)

08 May 2012 - 02:09 PM

Do all the wheel have the same rotation? if so, why not instead only have one wheel and draw it multiple times?

In Topic: whats windows gui rendering technology?

11 April 2012 - 03:50 PM

It dependes.
Previous to Windows 8, windows forms and other default windows controls used GDI.
With WPF and metro apps, Microsoft seems to be favoring DirectX instead.

That would mean is better activating it in your app isnt it?

Yeah, hardware acceleration usually has better performance than the software counterpart.
You actually don't have to do anything in relationship to the Aero Visual Style, sinse the OS takes care of it. You can try it on the control panel and adjust the settings.
Hope this helps ;)

In Topic: XNA 4.0 Foreach & GetEnumerator

11 April 2012 - 03:40 PM

Hi.

I think that you are making a mistake :s. You should not have a class cars, but rather have a class class "car" and then have a List<Car> containing all the game cars.
Also you are using the foreach currently here:

foreach (Cars Cars in parked_Cars)
{
Cars.Draw(spriteBatch);
}


Probably i am reading it wrong. That said, Enumerators only make sense in collections nad by looking at the Cars class, i cannot assert that that class represents a single car or a collection of cars..

Also, you can find acomphreensible Enumerator tutorial here. Hope this helps ;)

PARTNERS