?
Solved

Switching between PHYS_RigidBody to Phys_None and back again problem UDK

Posted on 2011-03-05
3
Medium Priority
?
860 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:satsumo
ID: 35045013
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
ID: 35117062
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
ID: 35154502
I found my problem
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

765 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