Solved

Switching between PHYS_RigidBody to Phys_None and back again problem UDK

Posted on 2011-03-05
3
847 Views
Last Modified: 2012-05-11
I get a weird anomaly when I try setting to phys_none, first the angle of the object changes, and when I switch back to phys_rigidbody the object goes crazy trying to set it's self back to the angle and location it was at before I switched to none.
0
Comment
Question by:codevomit
  • 2
3 Comments
 
LVL 12

Expert Comment

by:satsumo
Comment Utility
Describe the 'going crazy', how does the object behave?  Is the object intersecting anything when you set it back to rigid body?

I don't know about UDK itself, but I've done lots of work with rigid body physics.  I have a few ideas what this might be.  However there isn't enough information in your question for anything but speculation.

This is could be interpolation or energy conservation.  Physical bodies have kinetic energy, which pushes them in some direction and spins them.  When you make the object none physical, its stops moving with that energy, but the energy is not necessarily removed from the object.

Some physics system work with interpolation.  Physical motion happens continuously not 50 times per second like rendering.  The system might store where the object is and where its going to be in 0.5 seconds (unless something disturbs it), then interpolate closer to that point on each frame.

Then again, it may simply be that UDK keeps separate states for physical and non-physical objects.  Perhaps there is some code that tries to match them up when you switch state.  I guess the intention is that the object would move physically, then be frozen in place by making it non-physical.  So that when you make it physical again, it carries on from where it left off, rather than having moved somewhere else.
0
 
LVL 1

Accepted Solution

by:
codevomit earned 0 total points
Comment Utility
Having  bUpdateKinematicBonesFromAnimation=true in the KAssetSkelMeshComponent was what was causing it to it to try and return back to it's original position after I switch the object's state back to rigidbody.
0
 
LVL 1

Author Closing Comment

by:codevomit
Comment Utility
I found my problem
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now