practicing01 Posted May 19, 2016 Share Posted May 19, 2016 Hello, I'm trying to orient an object based on a raycast result transformation. The following isn't working. Any help would be appreciated. %rayResult = %obj.doRaycast(10000.0, %rayMask); %objTarget = firstWord(%rayResult); %objPos = getWords(%rayResult, 1, 3); %objDir = getWords(%rayResult, 4, 6); %transform = MatrixCreateFromEuler(%objDir); %box_.setTransform(%transform); %box_.position = %objPos; Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.