Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

move object rigidbody

felsiskafelsiska
edited October 2016 in Questions And Answers

i understood that that to collide objects with another collider, it is better to use Rigidbody.MovePosition rather than transform.position . tried replacing transform.position using the Rigidbody.MovePosition in the GestureAction.cs but cant get the object to move at all. anyone tried this method? need advice! thx

Tagged:

Answers

  • Options

    @felsiska in general you add and use a Rigidbody when you want to enforce physics on an object or between objects.

    Colliders on the other hand are about detecting collisions (with or without physics).

    If you search on Unity RigidBody vs Collider you will find a number of discussions on the web such as this one for example.

    So it really depends on what you are trying to achieve.

    Does the object you are trying to move have a Rigidbody on it?

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Options

    @HoloSheep
    I am trying to move objects and make them collide with a solid wall model. the movable object does have rigidbody and collider. but will still go through the wall if I use transform.position . tried Rigidbody.moveposition to move automatically and they collide well. but when I switch transform.position with Rigidboody.MovePosition in GestureAction.cs , nothing happened. objects are still not colliding.

  • Options

    You can try using rigidbody.addforce to move the objects. Then I think Unitys physics will do the rest.

Sign In or Register to comment.