CreateUnityConstantForce
creates a Unity constant force component attached to the UnityGameObject obj.
creates a Unity constant force component with the specified name.
generates a copy of the Unity constant force component comp.
Details
- CreateUnityConstantForce returns a UnityConstantForce, and $Failed if it cannot be created.
Examples
Basic Examples (1)Summary of the most common use cases
Load the package and open a project:

https://wolfram.com/xid/0huqp9qu0w8xdt6rc0necjbad6-ngi9ro

https://wolfram.com/xid/0huqp9qu0w8xdt6rc0necjbad6-fm8086
Create a Unity constant force component:

https://wolfram.com/xid/0huqp9qu0w8xdt6rc0necjbad6-ba7x7q

Attach the component to a UnityGameObject:

https://wolfram.com/xid/0huqp9qu0w8xdt6rc0necjbad6-d4c0oj

https://wolfram.com/xid/0huqp9qu0w8xdt6rc0necjbad6-b44thv

Wolfram Research (2019), CreateUnityConstantForce, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html.
Text
Wolfram Research (2019), CreateUnityConstantForce, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html.
Wolfram Research (2019), CreateUnityConstantForce, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html.
CMS
Wolfram Language. 2019. "CreateUnityConstantForce." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html.
Wolfram Language. 2019. "CreateUnityConstantForce." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html.
APA
Wolfram Language. (2019). CreateUnityConstantForce. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html
Wolfram Language. (2019). CreateUnityConstantForce. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html
BibTeX
@misc{reference.wolfram_2022_createunityconstantforce, author="Wolfram Research", title="{CreateUnityConstantForce}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html}", note=[Accessed: 04-June-2025
]}
BibLaTeX
@online{reference.wolfram_2022_createunityconstantforce, organization={Wolfram Research}, title={CreateUnityConstantForce}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/CreateUnityConstantForce.html}, note=[Accessed: 04-June-2025
]}