question

mark zhen avatar image
0 Likes"
mark zhen asked Jason Lightfoot commented

How can I tell where I have a collision

I want to know where the collision happened, can I use pf to write it? Or is there any other way to find out0421.fsm

FlexSim 20.0.10
agvcollision
0421.fsm (73.4 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Kavika F avatar image Kavika F ♦ commented ·

Hi @mark zhen , was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

The location of any object can be found using location

· 18
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

mark zhen avatar image mark zhen commented ·
@Jason Lightfoot

謝謝你的建議,但我好像沒有辦法靠閱讀就可以實現操作,可以舉例給我看看嗎?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ mark zhen commented ·
Vec3 objectLocation=myobject.location;  //find the coordinates of the object in its current location's space (often the model)

double xloc=objectlocation.x;  //assign the x coordinate component to a local variable.

0 Likes 0 ·
mark zhen avatar image mark zhen Jason Lightfoot ♦♦ commented ·

0421-1-jl2.fsm

所以我是該這樣添加到模型中嗎?

0 Likes 0 ·
0421-1-jl2.fsm (66.2 KiB)
Show more comments