Announcement

Collapse
No announcement yet.

Getting object to maintain it's position relative to another

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting object to maintain it's position relative to another

    I've written some code to keep a sword stuck into a physics object when it moves. It works fine unless the physics object has been moved before throwing the sword into it, see here:


    Here is the code, any ideas on what's up here or maybe just any other ways of doing this that would work?

    Click image for larger version  Name:	Untitled2.png Views:	0 Size:	178.6 KB ID:	1790576
    Click image for larger version  Name:	Untitled1.png Views:	0 Size:	135.5 KB ID:	1790575

    #2
    Hi man ,
    i am not an expert in this but...

    Try :
    setting off collision for Stuck-.Object , recursive hitting could be a problem

    Use attach actor to actor (My crossbow cast arrows in cubes quite well)
    Or
    add a new mesh to the cube, with the shape of the sword ?


    Comment


      #3
      Originally posted by Est_engine View Post
      Hi man ,
      i am not an expert in this but...

      Try :
      setting off collision for Stuck-.Object , recursive hitting could be a problem

      Use attach actor to actor (My crossbow cast arrows in cubes quite well)
      Or
      add a new mesh to the cube, with the shape of the sword ?

      Thanks for the suggestion I don't know why it didn't occur to me to use attach actor. It all works now that really helped!

      Comment

      Working...
      X