Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Rod Blueprint in Script
#2
(07-01-2021, 09:18 AM)MonaGermany Wrote: Hello!

I want to add the Obi Rod Blueprint to the Obi Rod in a Script, is this even possible?
The reason is, that I manipulate the Control Points in the Blueprint, depending on which case I have.
And when I add the Blueprint first to the Rod, then the manipulation of the Control Points in the general Obi Rod Blueprint Script has no effect anymore…

Or is there a way to change the Control Points in Script afterwards?

Thank you in advance for your help!

Greetings
Mona
Hi there,

You can create/modify blueprints at runtime, create/modify curve control points, and assign the blueprint to a rope at runtime. It's explained in detail (with sample code) here: http://obi.virtualmethodstudio.com/tutor...ctors.html

Don't expect to be able to modify existing ropes by changing their blueprint after it has been instantiated, though.

Just to make things clear: once you instantiate an actor, it is no longer tied to the blueprint in any way. Blueprints act as a "instruction manual" for the actor to know were to place particles and how to interconnect them using constraints. In this regard, they act just like prefabs: once you instantiate a prefab, modifying the prefab has no impact on the existing instances.

Control points only exist as a way to easily define a curve along which to place particles and define the rope's rest shape. Neither the curve nor its control points have any impact on existing ropes once their simulation has begun.
Reply


Messages In This Thread
Obi Rod Blueprint in Script - by MonaGermany - 07-01-2021, 09:18 AM
RE: Obi Rod Blueprint in Script - by josemendez - 07-01-2021, 09:55 AM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 08:38 AM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 10:50 AM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 11:00 AM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 11:30 AM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 12:59 PM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 02:09 PM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 02:28 PM
RE: Obi Rod Blueprint in Script - by josemendez - 08-01-2021, 02:36 PM
RE: Obi Rod Blueprint in Script - by MonaGermany - 08-01-2021, 02:47 PM