PDA

View Full Version : Making a Golf Ball move



ninjabadger
11-09-2009, 04:29 PM
Hello all

I've been using unreal for a couple of years, but as yet haven't done much Unreal Scripting.

I was using XNA to build a golf game, but decided to switch to UDK as it should make my life easier.

However, I am struggling a little due to the sheer size of unreal and the lack of decent IDE at present (Intellisense how I miss you :( ).

So anyway - I've created a golf ball class that extends KActor, as this seemed most sensible, but I can't for the life of me work out how to apply a force to it in script.

Is KActor the right way to go, anyone got any ideas?

Thanks for any of your help!

ninjabadger
11-09-2009, 04:47 PM
Ah - just found the ApplyImpulse function in KActor :)

danimal'
11-09-2009, 05:24 PM
Checkout the Whizzle dev doc, it describes how they subclasses a KActor and apply physical forces to it. KActor seems the right way to go to me.

danimal