User Tag List

Results 1 to 6 of 6
  1. #1
    Dominating Sakura's Avatar
    Join Date
    Feb 2011
    Posts
    431
    Country:

    UScript Problem - UT physics

    Hello all,

    Can someone explain to me, how to use UT Physics in coding? I know how to compile uc files to u files, make and import textures and sounds, and make int files so that they turn into mods. But other than that I'm a noob. I do understand the parent/child relationship of uscript and I know what comes from what.


    I'm starting on really basic stuff. I just want to add actual coding to Decorations. Like the Woodenbox, Pottery0, etc.

    Can someone give me an example to start off on? It seems that the Actor script has a lot of variables I can use, and I suppose thats the cheat sheet to all of them?

    I wanted to start off on getting a vase to bounce. The variable I found for it was this,

    var(Movement) bool bBounce; // Bounces when hits ground fast.


    How could I use this to add on to a vase? So when I knock it down to the ground it will bounce?

    Thanks in advance.
    A fanatic is one who can't change his mind and won't change the subject.
    Winston Churchill

  2. #2
    Moderator .seVered.]['s Avatar
    Join Date
    Jun 2011
    Location
    Near a River and Under a Bridge
    Posts
    2,125
    Country:
    Last edited by .seVered.][; 06-09-2012 at 12:10 AM.

  3. #3
    Whicked Sick Banny's Avatar
    Join Date
    Aug 2011
    Location
    India
    Posts
    1,525
    Country:
    Quote Originally Posted by Sakura View Post
    Hello all,

    Can someone explain to me, how to use UT Physics in coding? I know how to compile uc files to u files, make and import textures and sounds, and make int files so that they turn into mods. But other than that I'm a noob. I do understand the parent/child relationship of uscript and I know what comes from what.


    I'm starting on really basic stuff. I just want to add actual coding to Decorations. Like the Woodenbox, Pottery0, etc.

    Can someone give me an example to start off on? It seems that the Actor script has a lot of variables I can use, and I suppose thats the cheat sheet to all of them?

    I wanted to start off on getting a vase to bounce. The variable I found for it was this,

    var(Movement) bool bBounce; // Bounces when hits ground fast.


    How could I use this to add on to a vase? So when I knock it down to the ground it will bounce?

    Thanks in advance.

    Practice makes a man perfect. You might learn a few things from the internet but you have to keep trying. Btw do you know C++ a bit?



  4. #4
    The Best There Ever Will Be! |uK|B|aZe//.'s Avatar
    Join Date
    Jan 2011
    Location
    London, United Kingdom
    Posts
    6,860
    talk to feralidragon aka xXx and Higor or Wildcard

  5. #5
    Rampage Feralidragon's Avatar
    Join Date
    Jan 2011
    Posts
    374
    Country:
    Physics in UT are pretty basic:
    - First you have the Physics variable, a constant which you can modify using SetPhysics.
    Physics is an enumerator which has:
    * PHYS_None: No physics;
    * PHYS_Projectile: Physics dictated by velocity and acceleration;
    * PHYS_Falling: Physics dictated by gravity;
    * PHYS_Rotating: Rotating actor;
    * PHYS_Walking, PHYS_Flying, PHYS_Swimming: All related to pawn physics (bots, players, monsters, etc);

    There are more, but these are the main ones.

    As for bouncing, that can only be achieved through coding that physics into it (by modifying the velocity and overall actor behavior in events like HitWall, Landed, Touch, Bump, etc), so take a look at the Razor2 class for instance (the ripper blade which bounces from walls/floor/ceilings), under Projectile class.

  6. #6
    Dominating Sakura's Avatar
    Join Date
    Feb 2011
    Posts
    431
    Country:
    Thanks everyone for helping me. I am looking into the information right now. On a good note I added gravity into my decoration. So now it is not in the air anymore ^.^ .
    A fanatic is one who can't change his mind and won't change the subject.
    Winston Churchill

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. So I have this problem
    By Puskis in forum Technical Problems
    Replies: 5
    Last Post: 08-05-2015, 06:54 PM
  2. Problem?
    By kushface in forum Reports/Complaints & Appeals
    Replies: 21
    Last Post: 11-21-2014, 11:31 PM
  3. ace problem
    By asdasdasdasddddd in forum Technical Problems
    Replies: 0
    Last Post: 06-23-2012, 07:40 AM
  4. Ace problem
    By asdasdasdasddddd in forum Technical Problems
    Replies: 1
    Last Post: 06-11-2012, 06:16 AM
  5. UT problem
    By |uK|B|aZe//. in forum Technical Problems
    Replies: 8
    Last Post: 07-07-2011, 06:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •